Mercurial > public > madeira
comparison photologue/models.py @ 186:f3eca817dd33
Get rid of null/ManyToMany warning in Photologue model.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 25 Jan 2016 19:34:58 -0600 |
parents | 762e46d0bb4a |
children |
comparison
equal
deleted
inserted
replaced
185:cfa730bbca6e | 186:f3eca817dd33 |
---|---|
123 help_text=_('A "slug" is a unique URL-friendly title for an object.')) | 123 help_text=_('A "slug" is a unique URL-friendly title for an object.')) |
124 description = models.TextField(_('description'), blank=True) | 124 description = models.TextField(_('description'), blank=True) |
125 is_public = models.BooleanField(_('is public'), default=True, | 125 is_public = models.BooleanField(_('is public'), default=True, |
126 help_text=_('Public galleries will be displayed in the default views.')) | 126 help_text=_('Public galleries will be displayed in the default views.')) |
127 photos = models.ManyToManyField('Photo', related_name='galleries', verbose_name=_('photos'), | 127 photos = models.ManyToManyField('Photo', related_name='galleries', verbose_name=_('photos'), |
128 null=True, blank=True) | 128 blank=True) |
129 tags = TagField(help_text=tagfield_help_text, verbose_name=_('tags')) | 129 tags = TagField(help_text=tagfield_help_text, verbose_name=_('tags')) |
130 | 130 |
131 class Meta: | 131 class Meta: |
132 ordering = ['-date_added'] | 132 ordering = ['-date_added'] |
133 get_latest_by = 'date_added' | 133 get_latest_by = 'date_added' |