Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BaseUser(BaseModel):
- first_name = CharField()
- last_name = CharField()
- username = CharField(unique=True)
- password = CharField()
- class Meta:
- order_by = ('last_name',)
- class Teacher(BaseUser):
- specialization = ForeignKeyField(Subject, related_name='specializations')
- class Student(BaseUser):
- group = CharField()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement