Skip to content

Commit

Permalink
Updated names in admin.py so that some basic test pass in the meantim…
Browse files Browse the repository at this point in the history
…e. Will get back to admin.py later to make more substantial changes.
  • Loading branch information
Andre Engelbrecht committed Jun 2, 2010
1 parent 30a7250 commit ff3b44d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/videostream/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
# If this script is distributed, it must be accompanied by the Licence

from django.contrib import admin
from videostream.models import VideoStream
from videostream.models import *

class VideoStreamAdmin(admin.ModelAdmin):
prepopulated_fields = {
'slug': ('title',),
}
class VideoAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug': ('title',)}
fieldsets = [
('General', {'fields': ['title', 'slug', 'description']}),
('Publication', {'fields': ['pub_date', 'tags', 'is_public', 'featured', 'enable_comments']}),
Expand All @@ -23,4 +21,4 @@ class VideoStreamAdmin(admin.ModelAdmin):
list_filter = ['pub_date', 'is_public', 'featured','enable_comments', 'encode']
search_fields = ['title', 'description', 'tags']

admin.site.register(VideoStream, VideoStreamAdmin)
admin.site.register(Video, VideoAdmin)

0 comments on commit ff3b44d

Please sign in to comment.