Grade¶
Qualified name: intranet.apps.users.models.Grade
- class intranet.apps.users.models.Grade(graduation_year)[source]¶
Bases:
object
Represents a user’s grade.
Methods
grade_from_year
number_from_name
year_from_grade
Attributes
Return the grade's name (e.g.
Return the grade's plural name (e.g.
names
Return the grade as a number (9-12).
Return the grade's number as a string (e.g.
- __init__(graduation_year)[source]¶
Initialize the Grade object.
- Parameters:
graduation_year – The numerical graduation year of the user