Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikdb
Commits
2800de54
Commit
2800de54
authored
Aug 22, 2013
by
fred
Browse files
add soundfiles to admin
parent
aecdfc32
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikdb/emissions/admin.py
View file @
2800de54
from
django.contrib
import
admin
from
.models
import
Emission
,
Episode
,
Category
,
Schedule
,
\
NewsItem
,
NewsCategory
SoundFile
,
NewsItem
,
NewsCategory
class
EmissionAdmin
(
admin
.
ModelAdmin
):
prepopulated_fields
=
{
'slug'
:
(
'title'
,)}
...
...
@@ -37,3 +37,9 @@ class NewsItemAdmin(admin.ModelAdmin):
pass
admin
.
site
.
register
(
NewsItem
,
NewsItemAdmin
)
class
SoundFileAdmin
(
admin
.
ModelAdmin
):
pass
admin
.
site
.
register
(
SoundFile
,
SoundFileAdmin
)
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