Commit d34218f8 authored by Brescia Amandy's avatar Brescia Amandy

Created an Admin Panel for the Homepage app

parent 0415f167
from django.contrib import admin from django.contrib import admin
# Register your models here. from .models import Artist, Album, Song
class ArtistAdmin(admin.ModelAdmin):
model = Artist
class AlbumAdmin(admin.ModelAdmin):
model = Album
class SongAdmin(admin.ModelAdmin):
model = Song
admin.site.register(Artist, ArtistAdmin)
admin.site.register(Album, AlbumAdmin)
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