Models AGENTES Classes#
models.py classes:
- class agentes.models.Student(id, photo, name, cpf, email, course, group)#
- exception DoesNotExist#
- exception MultipleObjectsReturned#
- course#
- Rtype course:
str
- cpf#
- Rtype cpf:
str
- email#
- Rtype email:
str
- group#
- Rtype group:
str
- name#
- Rtype name:
str
- photo#
- Rtype photo:
str
- photo_preview()#
Returns an HTML <img> tag with ‘self.photo.url’ and ‘100px’ as src and width attributes, respectively.
- Returns:
An HTML <img> tag.
- Return type:
str
- class agentes.models.Teacher(id, photo, cpf, name, email)#
- exception DoesNotExist#
- exception MultipleObjectsReturned#
- cpf#
- Rtype cpf:
str
- email#
- Rtype email:
str
- groups#
- Rtype groups:
str
- name#
- Rtype name:
str
- photo#
- Rtype photo:
str
- photo_preview()#
Returns an HTML <img> tag with ‘self.photo.url’ and ‘100px’ as src and width attributes, respectively.
- Returns:
An HTML <img> tag.
- Return type:
str
admin.py classes: