S
S
Sergey Nizhny Novgorod2016-06-15 06:36:42
Django
Sergey Nizhny Novgorod, 2016-06-15 06:36:42

What will be better: your own User model or an extension of the standard User model?

Hello.
I now need to add 5 fields to the USER model. Plus, make these fields available in the admin panel (standard admin panel).
1) Avatar - ImageField
2) About me - TextField
3) Industry - TextField
4) Number of likes - IntegerField (need to link to other models).
5) Status via Choice - IntegerField
In the future, you will also need to play with the differentiation of rights for some users (most likely I will add a user category and play through this field).
So.
Question: Extend the regular User model or create your own?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question