fixed coding convention nits
This commit is contained in:
parent
05100add88
commit
fe0473a24a
1 changed files with 14 additions and 14 deletions
|
@ -12,14 +12,14 @@ class Conference(models.Model):
|
||||||
the full conference for a specific year, e.g. US PyCon 2012.
|
the full conference for a specific year, e.g. US PyCon 2012.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
title = models.CharField(_('title'), max_length=100)
|
title = models.CharField(_("title"), max_length=100)
|
||||||
|
|
||||||
# when the conference runs
|
# when the conference runs
|
||||||
start_date = models.DateField(_('start date'), null=True, blank=True)
|
start_date = models.DateField(_("start date"), null=True, blank=True)
|
||||||
end_date = models.DateField(_('end date'), null=True, blank=True)
|
end_date = models.DateField(_("end date"), null=True, blank=True)
|
||||||
|
|
||||||
# timezone the conference is in
|
# timezone the conference is in
|
||||||
timezone = TimeZoneField(_('timezone'), blank=True)
|
timezone = TimeZoneField(_("timezone"), blank=True)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.title
|
return self.title
|
||||||
|
@ -36,10 +36,10 @@ class Conference(models.Model):
|
||||||
del CONFERENCE_CACHE[pk]
|
del CONFERENCE_CACHE[pk]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class Meta(object):
|
class Meta(object):
|
||||||
verbose_name = _('conference')
|
verbose_name = _("conference")
|
||||||
verbose_name_plural = _('conferences')
|
verbose_name_plural = _("conferences")
|
||||||
|
|
||||||
|
|
||||||
class Section(models.Model):
|
class Section(models.Model):
|
||||||
|
@ -49,20 +49,20 @@ class Section(models.Model):
|
||||||
scheduling process.
|
scheduling process.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
conference = models.ForeignKey(Conference, verbose_name=_('conference'))
|
conference = models.ForeignKey(Conference, verbose_name=_("conference"))
|
||||||
|
|
||||||
name = models.CharField(_('name'), max_length=100)
|
name = models.CharField(_("name"), max_length=100)
|
||||||
|
|
||||||
# when the section runs
|
# when the section runs
|
||||||
start_date = models.DateField(_('start date'), null=True, blank=True)
|
start_date = models.DateField(_("start date"), null=True, blank=True)
|
||||||
end_date = models.DateField(_('end date'), null=True, blank=True)
|
end_date = models.DateField(_("end date"), null=True, blank=True)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
class Meta(object):
|
class Meta(object):
|
||||||
verbose_name = _('section')
|
verbose_name = _("section")
|
||||||
verbose_name_plural = _('sections')
|
verbose_name_plural = _("sections")
|
||||||
|
|
||||||
|
|
||||||
def current_conference():
|
def current_conference():
|
||||||
|
|
Loading…
Reference in a new issue