SHARE
TWEET

gradebook_part

a guest Dec 13th, 2016 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class BaseUser(BaseModel):
  2.     first_name = CharField()
  3.     last_name = CharField()
  4.     username = CharField(unique=True)
  5.     password = CharField()
  6.  
  7.     class Meta:
  8.         order_by = ('last_name',)
  9.  
  10.  
  11. class Teacher(BaseUser):
  12.     specialization = ForeignKeyField(Subject, related_name='specializations')
  13.  
  14.  
  15. class Student(BaseUser):
  16.     group = CharField()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top