| Home | Trees | Indices | Help |
|---|
|
|
db.models.Model --+
|
User
Users within the Django authentication system are represented by this model.
Username and password are required. Other fields are optional.
|
|||
| Meta | |||
| Admin | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
username = models.CharField(_('username'), max_length= 30, uni
|
|||
first_name = models.CharField(_('first name'), max_length= 30,
|
|||
last_name = models.CharField(_('last name'), max_length= 30, b
|
|||
email = models.EmailField(_('e-mail address'), blank= True)
|
|||
password = models.CharField(_('password'), max_length= 128, he
|
|||
is_staff = models.BooleanField(_('staff status'), default= Fal
|
|||
is_active = models.BooleanField(_('active'), default= True, he
|
|||
is_superuser = models.BooleanField(_('superuser status'), defa
|
|||
last_login = models.DateTimeField(_('last login'), default= da
|
|||
date_joined = models.DateTimeField(_('date joined'), default=
|
|||
groups = models.ManyToManyField(Group, verbose_name= _('groups
|
|||
user_permissions = models.ManyToManyField(Permission, verbose_
|
|||
objects = UserManager()
|
|||
|
|||
Always returns False. This is a way of comparing User objects to anonymous users. |
Always return True. This is a way to tell if the user has been authenticated in templates. |
Returns a boolean of whether the raw_password was correct. Handles encryption formats behind the scenes. |
Returns a list of permission strings that this user has through his/her groups. This method queries all available auth backends. |
Returns True if the user has the specified permission. This method queries all available auth backends, but returns immediately if any backend returns True. Thus, a user who has permission from a single auth backend is assumed to have permission in general. |
Returns True if the user has any permissions in the given app label. Uses pretty much the same logic as has_perm, above. |
Returns site-specific profile for this user. Raises SiteProfileNotAvailable if this site does not allow profiles. |
|
|||
username
|
first_name
|
last_name
|
password
|
is_staff
|
is_active
|
is_superuser
|
last_login
|
date_joined
|
groups
|
user_permissions
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Apr 17 18:52:15 2008 | http://epydoc.sourceforge.net |