<reponame>reload/Web-Based-Info-Screen
from django.contrib import admin
from infoscreen.models import URLSlide, HTMLSlide, Screen

class SlideAdmin(admin.ModelAdmin):
	ordering = ['priority', 'id']

class ScreenAdmin(admin.ModelAdmin):
	filter_horizontal = ['slides']

admin.site.register(URLSlide, SlideAdmin)
admin.site.register(HTMLSlide, SlideAdmin)
admin.site.register(Screen, ScreenAdmin)

from django.contrib import admin
from infoscreen.models import URLSlide, HTMLSlide, Screen

class SlideAdmin(admin.ModelAdmin):
	ordering = ['priority', 'id']

class ScreenAdmin(admin.ModelAdmin):
	filter_horizontal = ['slides']

admin.site.register(URLSlide, SlideAdmin)
admin.site.register(HTMLSlide, SlideAdmin)
admin.site.register(Screen, ScreenAdmin)