Commit fa4eeded authored by Julia Anishka's avatar Julia Anishka

registered the 3 models

parent 8d19a509
from django.contrib import admin from django.contrib import admin
from .models import Artist, Album, Song
# Register your models here. # Register your models here.
class ArtistAdmin(admin.ModelAdmin): class ArtistAdmin(admin.ModelAdmin):
...@@ -19,3 +21,7 @@ class SongAdmin(admin.ModelAdmin): ...@@ -19,3 +21,7 @@ class SongAdmin(admin.ModelAdmin):
list_display = ("song_title", "song_length", "lyrics", "music_video") list_display = ("song_title", "song_length", "lyrics", "music_video")
search_fields = ["song_title", "lyrics"] search_fields = ["song_title", "lyrics"]
list_filter = ("song_title",) 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