15 lines
319 B
Python
15 lines
319 B
Python
|
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)
|