Friday, September 28, 2012

Re: Virtualenvs and editing contrib stuff manually

On Fri, Sep 28, 2012 at 10:04 PM, Chris Pagnutti
<chris.pagnutti@gmail.com> wrote:
> Right on. Thanks for your replies. Since my change to the
> contrib.auth.User class is so minor, I'll just make a note of it and wait
> for the official release of 1.5.
>
> So, with the official way of changing the User class, in order to make
> different "kinds" of users, would you just use groups and permissions?
>

It's entirely up to you and your needs. If your "kinds" are
group-like, and it's possible for people to be in different groups,
then using groups might be appropriate. If it's as simple as "this
person is type X OR Y OR Z, then adding a choice field to your user
model may be appropriate.

The point is that in 1.5, your user model is entirely under your own
control. If you want your user to be compatible with Django's login
forms, or more importantly, the admin, there are some requirements you
need to meet, but these aren't too onerous.

Yours,
Russ Magee %-)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment