sdbs-infra/sdbs_infra/dashboard/admin.py

17 lines
425 B
Python
Raw Normal View History

2020-06-14 12:08:11 +02:00
from django.contrib import admin
from ordered_model.admin import OrderedModelAdmin
2020-06-20 19:32:10 +02:00
from sdbs_infra.dashboard.models import Service, Link
class LinkAdmin(OrderedModelAdmin):
list_display = ('short_name', 'url', 'move_up_down_links')
2020-06-14 12:08:11 +02:00
class ServiceAdmin(OrderedModelAdmin):
list_display = ('short_name', 'url', 'move_up_down_links')
2020-06-20 19:32:10 +02:00
admin.site.register(Link, LinkAdmin)
2020-06-14 12:08:11 +02:00
admin.site.register(Service, ServiceAdmin)