Staff Model Reference¶
StaffMember¶
-
class
StaffMember¶ -
user¶ Required
ForeignKeyUserThe
Userto 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
SlugFieldA URL-friendly version of the first and last name.
-
email¶ EmailFieldThe email address of the user. It is automatically synced with the user object and is provided in this model for convenience.
-
bio¶ TextFieldAn in-depth, riveting account of the user’s life.
-
is_active¶ Required
BooleanFieldDefault:TrueTrueindicates a current staff member.Falseindicates a former staff member.
-
phone¶ PhoneNumberFieldA series of digits which, when typed into telephonic devices, might establish a vocal connection to the user.
-
photo¶ RemovableImageFieldA visual, digital representation of the user. The image is stored based on the PHOTO_STORAGE setting.
-
photo_height¶ IntegerFieldAn automatically-managed reference to the height of the uploaded photo.
-
photo_width¶ IntegerFieldAn 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¶ URLFieldA custom web site for the staff member.
-
sites¶ ManyToManyFieldSiteThe sites that the staff member works on.
-
get_full_name()¶ A convenient way to concatenate the first and last name.
Returns: unicode
-