Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added some admin functionality for harkweb

  • Loading branch information...
commit 4a627437f1b25530bb89b6cb9795953da73d4b3e 1 parent a99e57d
@slackwalker authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 harkweb/admin.py
View
14 harkweb/admin.py
@@ -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)
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.