]> git.0d.be Git - django-panik-emissions.git/blobdiff - emissions/models.py
add checkbox to note about image usage permissions
[django-panik-emissions.git] / emissions / models.py
index cd5783703f471f08450350c68204aac05abba36b..9558461a55be7427a85dda7df8cd595f9040a9d9 100644 (file)
@@ -207,6 +207,7 @@ class Emission(models.Model):
     email = models.EmailField(_('Email'), max_length=254, null=True, blank=True)
     website = MultiURLField(_('Website'), 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(
@@ -480,6 +481,8 @@ class Episode(models.Model):
     extra_links = MultiURLField(_('Extra links'), null=True, blank=True)
     tags = TaggableManager(_('Tags'), blank=True)
     duration = models.IntegerField(_('Duration'), null=True, blank=True, help_text=_('In minutes'))
+
+    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(
@@ -999,6 +1002,7 @@ class Picture(models.Model):
     title = models.CharField(_('Title'), max_length=150, null=True, blank=True)
     alt_text = models.CharField(_('Alternative Text'), max_length=500, null=True, blank=True)
 
+    image_usage_ok = models.BooleanField(_('Include image'), default=False)
     image = models.ImageField(_('Picture'), upload_to=get_image_path, max_length=250, null=False, blank=False)
     image_attribution_url = models.URLField(_('URL for picture attribution'), null=True, blank=True)
     image_attribution_text = models.CharField(