Removed inlines classes causing error

parent 466675c3
No preview for this file type
......@@ -2,12 +2,6 @@ from django.contrib import admin
from .models import Artist, Album, Song
class AlbumInline(admin.TabularInline):
model = Album
class SongInline(admin.TabularInline):
model = Song
class ArtistAdmin(admin.ModelAdmin):
model = Artist
......@@ -15,8 +9,6 @@ class ArtistAdmin(admin.ModelAdmin):
list_display = ('artist_name',)
list_filter = ('artist_name',)
inlines = [AlbumInline, SongInline,]
class AlbumAdmin(admin.ModelAdmin):
model = Album
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment