2020-06-14 12:08:11 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
from ordered_model.admin import OrderedModelAdmin
|
|
|
|
|
2020-07-15 03:56:01 +02:00
|
|
|
from sdbs_infra.dashboard.models import Service, Link, Machine
|
2020-06-20 19:32:10 +02:00
|
|
|
|
|
|
|
|
|
|
|
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-07-15 03:56:01 +02:00
|
|
|
class MachineAdmin(OrderedModelAdmin):
|
|
|
|
list_display = ('short_name', '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)
|
2020-07-15 03:56:01 +02:00
|
|
|
admin.site.register(Machine, MachineAdmin)
|