Photo

Qualified name: intranet.apps.users.models.Photo

class intranet.apps.users.models.Photo(*args, **kwargs)[source]

Bases: Model

Represents a user photo

Parameters:

Relationship fields:

Parameters:

user (ForeignKey to User) – User (related name: photos)

Methods

get_grade_number_display

Shows the label of the grade_number.

Attributes

base64

Returns base64 encoded binary data for a user's picture.

grade_number

Type: IntegerField

id

Type: AutoField

objects

user

Type: ForeignKey to User

user_id

Internal field, use user instead.

base64

Returns base64 encoded binary data for a user’s picture.