Commit fa4eeded authored by Julia Anishka's avatar Julia Anishka

registered the 3 models

parent 8d19a509
from django.contrib import admin
from .models import Artist, Album, Song
# Register your models here.
class ArtistAdmin(admin.ModelAdmin):
......@@ -18,4 +20,8 @@ class SongAdmin(admin.ModelAdmin):
model = Song
list_display = ("song_title", "song_length", "lyrics", "music_video")
search_fields = ["song_title", "lyrics"]
list_filter = ("song_title",)
\ No newline at end of file
list_filter = ("song_title",)
admin.site.register(Artist)
admin.site.register(Album)
admin.site.register(Song)
\ 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