summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/jrnl/admin.py1
-rw-r--r--app/jrnl/models.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py
index 2d843b9..9a39114 100644
--- a/app/jrnl/admin.py
+++ b/app/jrnl/admin.py
@@ -51,7 +51,6 @@ class EntryAdmin(OSMGeoAdmin):
'fields': (
'dek',
'meta_description',
- 'image',
'template_name',
'enable_comments',
),
diff --git a/app/jrnl/models.py b/app/jrnl/models.py
index 19f5417..6f9d7a6 100644
--- a/app/jrnl/models.py
+++ b/app/jrnl/models.py
@@ -76,7 +76,7 @@ class Entry(models.Model):
)
status = models.IntegerField(choices=PUB_STATUS, default=0)
photo_gallery = models.ForeignKey(PhotoGallery, on_delete=models.CASCADE, blank=True, null=True, verbose_name='photo set')
- image = models.FileField(upload_to=get_upload_path, null=True, blank=True, help_text="should be 520 by 290")
+ image = models.FileField(upload_to=get_upload_path, blank=True, help_text="should be 520 by 290")
#thumbnail = models.FileField(upload_to=get_tn_path, null=True, blank=True, help_text="should be 160 wide")
meta_description = models.CharField(max_length=256, null=True, blank=True)
TEMPLATES = (
@@ -196,7 +196,6 @@ class Entry(models.Model):
except Location.DoesNotExist:
raise forms.ValidationError("There is no location associated with that point, add it: %sadmin/locations/location/add/" % (settings.BASE_URL))
old = type(self).objects.get(pk=self.pk) if self.pk else None
- print("self.image.path: ", self.image.path)
if old and old.featured_image != self.featured_image or created: # Field has changed
s = LuxImageSize.objects.get(name="featured_jrnl")
self.featured_image.sizes.add(s)