14 """Contains teacher contact information and allowed cards.
18 'userid': (
'INTEGER',
'PRIMARY KEY NOT NULL',),
23 'contactinfo': (
'TRANSLATION',
"NOT NULL DEFAULT ''",),
24 'allowedcards': (
'NEWLINELIST',
"NOT NULL DEFAULT ''",),
25 'numclasses': (
'INT',
'NOT NULL DEFAULT 0',),
26 'numstudents': (
'INT',
'NOT NULL DEFAULT 0',),
27 'flags': (
'INT',
'NOT NULL DEFAULT 0',),
36 _dbdisplay = [
'displayname',
'profile',
'phonenumber',
'email']
Contains teacher contact information and allowed cards.
def __init__(self)
Initialize all fields at creation like a good programmer should.
Base class for all database models.
Throws an exception on blank values.