portier/restream/admin.py

11 lines
272 B
Python
Raw Normal View History

2020-04-15 20:29:59 +02:00
from django.contrib import admin
from guardian.admin import GuardedModelAdmin
2020-04-15 20:29:59 +02:00
from .models import RestreamConfig
class RestreamConfigAdmin(GuardedModelAdmin):
fields = ['name', 'active', 'stream', 'target']
2020-04-15 20:29:59 +02:00
admin.site.register(RestreamConfig, RestreamConfigAdmin)