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
......@@ -18,3 +18,7 @@ class songAdmin(admin.ModelAdmin):
search_fields = ('song_title', 'lyrics',)
list_display = ('song_title', 'song_length', 'lyrics', 'music_video',)
list_filter = ('song_title',)
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