registering the model and the admin in order to tell Django to generate admin...

registering the model and the admin in order to tell Django to generate admin pages for the models specified
parent b19d0f1f
Pipeline #2811 failed with stages
...@@ -17,4 +17,8 @@ class songAdmin(admin.ModelAdmin): ...@@ -17,4 +17,8 @@ class songAdmin(admin.ModelAdmin):
model = Song model = Song
search_fields = ('song_title', 'lyrics',) search_fields = ('song_title', 'lyrics',)
list_display = ('song_title', 'song_length', 'lyrics', 'music_video',) list_display = ('song_title', 'song_length', 'lyrics', 'music_video',)
list_filter = ('song_title',) list_filter = ('song_title',)
\ No newline at end of file
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