Skip to content

Commit

Permalink
feat(admin): add display id for landmark
Browse files Browse the repository at this point in the history
  • Loading branch information
swusjask committed Jun 2, 2024
1 parent d1b3a8f commit d42bf8a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion app/landmark/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,23 @@
UniqueActivity,
)


# Custom admin class for Landmark
class LandmarkAdmin(admin.ModelAdmin):
list_display = (
"id",
"name",
"description",
"history",
"phone",
"email",
"website",
"location",
)


# Register your models here.
admin.site.register(Landmark)
admin.site.register(Landmark, LandmarkAdmin)
admin.site.register(Location)
admin.site.register(OpeningHour)
admin.site.register(PhotoLandmark)
Expand Down

0 comments on commit d42bf8a

Please sign in to comment.