It's not recommended that you subclass User.

Better: Create a class to use for a user profile and associate it with
the User using the instructions here:

http://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users

Then give that class a 'role' field or something and use that. You can
use request.user.get_profile() to get at it in your views. It's
cleaner and easier than subclassing User.

Shawn

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to