diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/sightings/admin.py | 1 | ||||
-rw-r--r-- | app/sightings/models.py | 2 |
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) |