]> git.0d.be Git - django-panik-emissions.git/blobdiff - emissions/models.py
move image attribution text before attribution url
[django-panik-emissions.git] / emissions / models.py
index f62ebf443b08a788895ebfbce1ab609d4dbc3621..a17b445b7b11938c6f24d843318f765f20622e20 100644 (file)
@@ -209,10 +209,10 @@ class Emission(models.Model):
 
     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(
         _('Text for image attribution'), max_length=250, null=True, blank=True
     )
+    image_attribution_url = models.URLField(_('URL for image attribution'), null=True, blank=True)
     tags = TaggableManager(_('Tags'), blank=True)
 
     chat_open = models.DateTimeField(null=True, blank=True)
@@ -484,10 +484,10 @@ class Episode(models.Model):
 
     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(
         _('Text for image attribution'), max_length=250, null=True, blank=True
     )
+    image_attribution_url = models.URLField(_('URL for image attribution'), null=True, blank=True)
 
     agenda_only = models.BooleanField(_('Only include in agenda'), default=False)
 
@@ -794,10 +794,10 @@ class NewsItem(models.Model):
 
     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(
         _('Text for image attribution'), max_length=250, null=True, blank=True
     )
+    image_attribution_url = models.URLField(_('URL for image attribution'), null=True, blank=True)
 
     tags = TaggableManager(_('Tags'), blank=True)
     category = models.ForeignKey(
@@ -855,10 +855,10 @@ class Nonstop(models.Model):
 
     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(
         _('Text for image attribution'), max_length=250, null=True, blank=True
     )
+    image_attribution_url = models.URLField(_('URL for image attribution'), null=True, blank=True)
 
     redirect_path = models.CharField(_('Redirect Path'), max_length=200, blank=True)
 
@@ -1008,10 +1008,10 @@ class Picture(models.Model):
 
     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(
         _('Text for picture attribution'), max_length=250, null=True, blank=True
     )
+    image_attribution_url = models.URLField(_('URL for picture attribution'), null=True, blank=True)
 
     newsitem = models.ForeignKey(
         'NewsItem', verbose_name=_('News Item'), null=True, blank=True, on_delete=models.CASCADE