1 from DemosceneMusic.data.models import *
2 from django.contrib import admin
4 admin.site.register(Artist)
5 admin.site.register(Group)
6 admin.site.register(Party)
7 admin.site.register(Compo)
8 admin.site.register(Release)
9 admin.site.register(File)
11 class TrackArtistInline(admin.TabularInline):
15 class RemixArtistInline(admin.TabularInline):
19 class TrackAdmin(admin.ModelAdmin):
21 (None, {'fields': ['name', 'length']}),
22 ('Remix Information', {'fields': ['remix'], 'classes': ['collapse']}),
23 ('Release Information', {'fields': ['releases']}),
25 inlines = [TrackArtistInline, RemixArtistInline]
27 admin.site.register(Track, TrackAdmin)