Staff Model Reference¶
StaffMember¶
-
class
StaffMember
¶ -
user
¶ Required
ForeignKey
User
The
User
to which this profile relates. Choices are limited to active users.
-
first_name
¶ CharField(150)
The first name of the user. It is automatically synced with the user object and is provided in this model for convenience.
-
last_name
¶ CharField(150)
The last name of the user. It is automatically synced with the user object and is provided in this model for convenience.
-
slug
¶ Required
SlugField
A URL-friendly version of the first and last name.
-
email
¶ EmailField
The email address of the user. It is automatically synced with the user object and is provided in this model for convenience.
-
bio
¶ TextField
An in-depth, riveting account of the user’s life.
-
is_active
¶ Required
BooleanField
Default:True
True
indicates a current staff member.False
indicates a former staff member.
-
phone
¶ PhoneNumberField
A series of digits which, when typed into telephonic devices, might establish a vocal connection to the user.
-
photo
¶ RemovableImageField
A visual, digital representation of the user. The image is stored based on the PHOTO_STORAGE setting.
-
photo_height
¶ IntegerField
An automatically-managed reference to the height of the uploaded photo.
-
photo_width
¶ IntegerField
An automatically-managed reference to the width of the uploaded photo.
-
twitter
¶ CharField(100)
The staff member’s Twitter ID
-
facebook
¶ CharField(100)
The staff member’s Facebook ID
-
google_plus
¶ CharField(100)
The staff member’s Google Plus account
-
website
¶ URLField
A custom web site for the staff member.
-
sites
¶ ManyToManyField
Site
The sites that the staff member works on.
-
get_full_name
()¶ A convenient way to concatenate the first and last name.
Returns: unicode
-