Commit 6f5e9720 authored by rachbit's avatar rachbit

set up django admin page

parent 8a2ced8b
from django.contrib import admin
from .models import Artist, Album, Song
# Register your models here.
class ArtistAdmin(admin.ModelAdmin):
model = Artist
class AlbumAdmin(admin.ModelAdmin):
model = Album
class SongAdmin(admin.ModelAdmin):
model = Song
# registering the model and the admin is what tells
# Django that admin pages must be generated for the models specified
admin.site.register(Artist, ArtistAdmin)
admin.site.register(Album, AlbumAdmin)
admin.site.register(Song, SongAdmin)
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