Project

General

Profile

« Previous | Next » 

Revision ef0dcf1e

Added by Serghei Mihai almost 8 years ago

trivial: pep8 fixes

View differences:

corbo/models.py
14 14
    def __unicode__(self):
15 15
        return self.name
16 16

  
17

  
17 18
class Announce(models.Model):
18 19
    category  = models.ForeignKey('Category', verbose_name=_('category'))
19 20
    title = models.CharField(_('title'), max_length=256,
......
46 47
        verbose_name = _('announce')
47 48
        ordering = ('-mtime',)
48 49

  
50

  
49 51
class Broadcast(models.Model):
50 52
    announce = models.ForeignKey(Announce, verbose_name=_('announce'))
51 53
    channel = models.CharField(_('channel'), max_length=32,
......
62 64
        ordering = ('-time',)
63 65
        unique_together = ('announce', 'channel')
64 66

  
67

  
65 68
class SubscriptionType(models.Model):
66 69
    subscription = models.ForeignKey('Subscription')
67 70
    identifier = models.CharField(_('identifier'), max_length=128, blank=True,
68 71
            help_text=_('ex.: email, mobile phone number, jabber id'))
69 72

  
73

  
70 74
class Subscription(models.Model):
71 75
    user = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name=_('user'),
72 76
                             blank=True, null=True)

Also available in: Unified diff