portier/rtmp/admin.py

15 lines
319 B
Python
Raw Normal View History

from django.contrib import admin
from .models import Application, Stream
class ApplicationAdmin(admin.ModelAdmin):
fields = ['name']
class StreamAdmin(admin.ModelAdmin):
fields = ['application', 'stream', 'name']
admin.site.register(Application, ApplicationAdmin)
admin.site.register(Stream, StreamAdmin)