Permalink
Browse files

added some admin functionality for harkweb

  • Loading branch information...
1 parent a99e57d commit 4a627437f1b25530bb89b6cb9795953da73d4b3e @slackwalker committed Mar 4, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 harkweb/admin.py
View
@@ -0,0 +1,14 @@
+from hark.harkweb.models import Artist, Album, Song
+from django.contrib import admin
+
+class SongInline(admin.TabularInline):
+ model = Song
+ extra = 1
+
+class AlbumAdmin(admin.ModelAdmin):
+ inlines = [SongInline]
+
+admin.site.register(Artist)
+admin.site.register(Album, AlbumAdmin)
+
+

0 comments on commit 4a62743

Please sign in to comment.