![]() ![]() ![]() FRESHMAN, ) def is_upperclass ( self ): return self. CharField ( max_length = 2, choices = YearInSchool, default = YearInSchool. TextChoices ): FRESHMAN = "FR", _ ( "Freshman" ) SOPHOMORE = "SO", _ ( "Sophomore" ) JUNIOR = "JR", _ ( "Junior" ) SENIOR = "SR", _ ( "Senior" ) GRADUATE = "GR", _ ( "Graduate" ) year_in_school = models. From import gettext_lazy as _ class Student ( models.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |