Skip to content

Commit

Permalink
chore: update display admin
Browse files Browse the repository at this point in the history
  • Loading branch information
aptarr committed Jun 20, 2024
1 parent a94a10d commit c9cb759
Showing 1 changed file with 48 additions and 5 deletions.
53 changes: 48 additions & 5 deletions app/landmark/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,55 @@ class LandmarkContentAdmin(admin.ModelAdmin):
)


class LocationAdmin(admin.ModelAdmin):
list_display = (
"id",
"address",
"location_url",
"landmark",
)


class OpeningHourAdmin(admin.ModelAdmin):
list_display = (
"id",
"open_time",
"close_time",
"landmark",
)


class PhotoLandmarkAdmin(admin.ModelAdmin):
list_display = (
"id",
"photo_url",
"landmark",
)


class UniqueActivityAdmin(admin.ModelAdmin):
list_display = (
"id",
"name",
"landmark",
)


class TicketPriceAdmin(admin.ModelAdmin):
list_display = (
"id",
"age",
"price",
"landmark",
)


# Register your models here.
admin.site.register(Landmark, LandmarkAdmin)
admin.site.register(Language)
admin.site.register(LandmarkContent, LandmarkContentAdmin)
admin.site.register(Location)
admin.site.register(OpeningHour)
admin.site.register(PhotoLandmark)
admin.site.register(TicketPrice)
admin.site.register(UniqueActivity)
admin.site.register(Location, LocationAdmin)
admin.site.register(OpeningHour, OpeningHourAdmin)
admin.site.register(PhotoLandmark, PhotoLandmarkAdmin)
admin.site.register(TicketPrice, TicketPriceAdmin)
admin.site.register(UniqueActivity, UniqueActivityAdmin)

0 comments on commit c9cb759

Please sign in to comment.