Commit 64829ae8 authored by Brian Guadalupe's avatar Brian Guadalupe

Enable admin page to view tables more easily

parent dc1e07e2
from django.contrib import admin
from core.models import *
# Register your models here.
class AlbumAdmin(admin.ModelAdmin):
list_display = ('album_name', 'artist', 'year')
class ArtistAdmin(admin.ModelAdmin):
list_display = ('name',)
class SongAdmin(admin.ModelAdmin):
list_display = ('song_name', 'artist', 'album')
list_filter = ('artist', 'album',)
admin.site.register(Album, AlbumAdmin)
admin.site.register(Artist, ArtistAdmin)
admin.site.register(Song, SongAdmin)
\ No newline at end of file
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