I’m looking to give super user access to users of a program I’m devving.
All the entities have a country id value, so i’m just lookign to hook up my user model to have a country ID
Looking at Django Auth, It should be nice and easy to add a super_user_country_id field.
However, how frowned upon is it to modify the core django classes?
Is there any easier way to go about this or?
At the moment, the recommended way is to create a
Profilemodel and link it to theUsermodel with aOneToOneFieldor aForeignKey(depending on your requirements). Here’s a good tutorial on the topic.The Django devs have repeatedly expressed their intent to make extending the
Usermodel more straightforward, but AFAIK, no concrete design has been proposed, yet.