first commit
This commit is contained in:
23
rog/admin.py
Normal file
23
rog/admin.py
Normal file
@ -0,0 +1,23 @@
|
||||
from django.contrib import admin
|
||||
from leaflet.admin import LeafletGeoAdmin
|
||||
from leaflet.admin import LeafletGeoAdminMixin
|
||||
from leaflet_admin_list.admin import LeafletAdminListMixin
|
||||
from .models import RogEvent, Shop, EventRoute, ShopRoute
|
||||
|
||||
|
||||
class RogAdmin(LeafletAdminListMixin, LeafletGeoAdminMixin, admin.ModelAdmin):
|
||||
list_display=['title', 'venue', 'at_date',]
|
||||
|
||||
class ShopAdmin(LeafletAdminListMixin, LeafletGeoAdminMixin, admin.ModelAdmin):
|
||||
list_display=['name',]
|
||||
|
||||
class EventRouteAdmin(LeafletAdminListMixin, LeafletGeoAdminMixin, admin.ModelAdmin):
|
||||
list_display=['name',]
|
||||
|
||||
class ShopRouteAdmin(LeafletAdminListMixin, LeafletGeoAdminMixin, admin.ModelAdmin):
|
||||
list_display=['name',]
|
||||
|
||||
admin.site.register(RogEvent, RogAdmin)
|
||||
admin.site.register(Shop, ShopAdmin)
|
||||
admin.site.register(EventRoute, EventRouteAdmin)
|
||||
admin.site.register(ShopRoute, ShopRouteAdmin)
|
||||
Reference in New Issue
Block a user