I suggest, and I believe it is considered best practice by others. To create a profile model for your members with a one to one relationship to the user. Basically you do not want anything in the user model that doesn't apply to all users.
On Sun, Feb 2, 2014 at 3:27 PM, Henrique Oliveira <henriqueolliveira@gmail.com> wrote:
Hi guys,--I am building a gambling website thas has 2 types of users:Admin user: An user that manage that manages the website, it is a staff user(As already is done in Django), this user cannot register by yourself.Member user: It is an user that interact with the website, it has an account, a wallet, can bet, can register itself, this type of user has some custom fields,such as date of birth, cell phone number.What is the best way to deal with this requirement using Django?Cheers
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/44106a20-2cef-4be6-9981-4b11887fae68%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
MLHIM VIP Signup: http://goo.gl/22B0U
============================================
Timothy Cook, MSc +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B%3DOU3U5zSGhcLHyP2vXSS70Be4CzoFhvgY8YZVwqM0jpSAz3w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment