trivial: pep8 fixes

This commit is contained in:
Serghei Mihai 2016-04-27 14:38:54 +02:00
parent 0b4735b548
commit ef0dcf1ebb
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class Category(models.Model):
def __unicode__(self):
return self.name
class Announce(models.Model):
category = models.ForeignKey('Category', verbose_name=_('category'))
title = models.CharField(_('title'), max_length=256,
@ -46,6 +47,7 @@ class Announce(models.Model):
verbose_name = _('announce')
ordering = ('-mtime',)
class Broadcast(models.Model):
announce = models.ForeignKey(Announce, verbose_name=_('announce'))
channel = models.CharField(_('channel'), max_length=32,
@ -62,11 +64,13 @@ class Broadcast(models.Model):
ordering = ('-time',)
unique_together = ('announce', 'channel')
class SubscriptionType(models.Model):
subscription = models.ForeignKey('Subscription')
identifier = models.CharField(_('identifier'), max_length=128, blank=True,
help_text=_('ex.: email, mobile phone number, jabber id'))
class Subscription(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name=_('user'),
blank=True, null=True)