Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
radiopanik
django-panik-nonstop
Commits
8b94d05d
Commit
8b94d05d
authored
Jun 14, 2020
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add random directory diffusion to admin
parent
24b02ae8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
nonstop/admin.py
nonstop/admin.py
+9
-1
No files found.
nonstop/admin.py
View file @
8b94d05d
from
django.contrib
import
admin
from
.models
import
Jingle
,
Stream
,
NonstopZoneSettings
,
RecurringStreamDiffusion
from
.models
import
Jingle
,
Stream
,
NonstopZoneSettings
,
RecurringStreamDiffusion
,
RecurringRandomDirectoryDiffusion
class
JingleAdmin
(
admin
.
ModelAdmin
):
...
...
@@ -27,4 +27,12 @@ admin.site.register(NonstopZoneSettings, NonstopZoneSettingsAdmin)
class
RecurringStreamDiffusionAdmin
(
admin
.
ModelAdmin
):
pass
admin
.
site
.
register
(
RecurringStreamDiffusion
,
RecurringStreamDiffusionAdmin
)
class
RecurringRandomDirectoryDiffusionAdmin
(
admin
.
ModelAdmin
):
pass
admin
.
site
.
register
(
RecurringRandomDirectoryDiffusion
,
RecurringRandomDirectoryDiffusionAdmin
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment