summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2022-02-14 08:21:56 -0500
committerluxagraf <sng@luxagraf.net>2022-02-14 08:21:56 -0500
commit58e87c33396a3cbad57cdac2c89a6ac844742624 (patch)
tree1af680d633428a4eb5afbad4e5ace80dddf3b29f /app
parent26a2d4a684db273ff707428e36911741a37532f2 (diff)
sght: changed image to featured_image so it would get the fancy picker
Diffstat (limited to 'app')
-rw-r--r--app/sightings/admin.py1
-rw-r--r--app/sightings/models.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/app/sightings/admin.py b/app/sightings/admin.py
index 0505ac8..16b837d 100644
--- a/app/sightings/admin.py
+++ b/app/sightings/admin.py
@@ -51,6 +51,7 @@ class SightingInline(OSMGeoAdmin, admin.StackedInline):
@admin.register(AP)
class APAdmin(admin.ModelAdmin):
form = LGEntryForm
+ form = LGEntryForm
inlines = [
SightingInline,
]
diff --git a/app/sightings/models.py b/app/sightings/models.py
index b54be12..93de8d8 100644
--- a/app/sightings/models.py
+++ b/app/sightings/models.py
@@ -62,7 +62,7 @@ class AP(models.Model):
apclass = models.ForeignKey(APClass, on_delete=models.CASCADE)
body_html = models.TextField(null=True, blank=True)
body_markdown = models.TextField(null=True, blank=True)
- image = models.ForeignKey(LuxImage, on_delete=models.CASCADE, null=True, blank=True)
+ featured_image = models.ForeignKey(LuxImage, on_delete=models.CASCADE, null=True, blank=True)
# image = models.FileField(upload_to=get_upload_path, null=True, blank=True, help_text="width of high res is 1360px")
# image_credit = models.CharField(max_length=200, blank=True, null=True)