]> git.0d.be Git - django-panik-emissions.git/blobdiff - emissions/models.py
add image_usage_ok attribute to other models
[django-panik-emissions.git] / emissions / models.py
index 9558461a55be7427a85dda7df8cd595f9040a9d9..f62ebf443b08a788895ebfbce1ab609d4dbc3621 100644 (file)
@@ -791,6 +791,8 @@ class NewsItem(models.Model):
     date = models.DateField(
         _('Publication Date'), help_text=_('The news won\'t appear on the website before this date.')
     )
+
+    image_usage_ok = models.BooleanField(_('Include image'), default=False)
     image = models.ImageField(_('Image'), upload_to=get_image_path, max_length=250, null=True, blank=True)
     image_attribution_url = models.URLField(_('URL for image attribution'), null=True, blank=True)
     image_attribution_text = models.CharField(
@@ -850,6 +852,8 @@ class Nonstop(models.Model):
 
     subtitle = models.CharField(_('Subtitle'), max_length=80, null=True, blank=True)
     text = RichTextField(_('Description'), null=True, blank=True)
+
+    image_usage_ok = models.BooleanField(_('Include image'), default=False)
     image = models.ImageField(_('Image'), upload_to=get_image_path, max_length=250, null=True, blank=True)
     image_attribution_url = models.URLField(_('URL for image attribution'), null=True, blank=True)
     image_attribution_text = models.CharField(