portier/srs/admin.py

15 lines
328 B
Python
Raw Normal View History

2020-04-15 20:29:59 +02:00
from django.contrib import admin
from .models import Application, Streamkey
class ApplicationAdmin(admin.ModelAdmin):
fields = ['name']
class StreamkeyAdmin(admin.ModelAdmin):
fields = ['application', 'key', 'name']
admin.site.register(Application, ApplicationAdmin)
admin.site.register(Streamkey, StreamkeyAdmin)