class Organization(Model):
name = CharField(_('name'), max_length=255)
- description = CharField(_('description'), max_length=255)
+ description = CharField(_('description'), max_length=255, null=True)
def __str__(self):
return self.name
class Department(Model):
name = CharField(_('name'), max_length=255)
- description = CharField(_('description'), max_length=255)
+ description = CharField(_('description'), max_length=255, null=True)
def __str__(self):
return self.name
class Conference(Model):
title = CharField(_('title'), max_length=255)
- description = CharField(_('description'), max_length=255)
+ description = CharField(_('description'), max_length=255, null=True)
department = ForeignKey('Department', related_name='conferences', verbose_name='department')
def __str__(self):
class Session(Model):
name = CharField(_('name'), max_length=255)
- description = CharField(_('description'), max_length=255)
+ description = CharField(_('description'), max_length=255, null=True)
number = IntegerField(_('number'))
def __str__(self):
class Professor(Model):
name = CharField(_('name'), max_length=255)
- institution = CharField(_('institution'), max_length=255)
- address = CharField(_('address'), max_length=255)
- telephone = CharField(_('telephone'), max_length=255)
- email = CharField(_('email'), max_length=255)
+ institution = CharField(_('institution'), max_length=255, null=True)
+ address = CharField(_('address'), max_length=255, null=True)
+ telephone = CharField(_('telephone'), max_length=255, null=True)
+ email = CharField(_('email'), max_length=255, null=True)
def __str__(self):
return self.name
conference = ForeignKey('Conference', related_name='stations', verbose_name='conference')
session = ForeignKey('Session', related_name='stations', verbose_name='session')
professor = ForeignKey('Professor', related_name='stations', verbose_name='professor')
- comment = TextField(_('comment'))
+ comment = TextField(_('comment'), null=True)
started = BooleanField(_('started'))
- datetime_start = DateTimeField(_('time_start'))
- datetime_stop = DateTimeField(_('time_stop'))
+ datetime_start = DateTimeField(_('time_start'), null=True)
+ datetime_stop = DateTimeField(_('time_stop'), null=True)
class Meta:
db_table = app_label + '_' + 'station'