1. Kevin Veroneau
  2. dvd-collection

Source

dvd-collection / collection / admin.py

Diff from to

File collection/admin.py

 from django.contrib import admin
-from collection.models import Genre, Movie, Director
+from collection.models import Genre, Movie, Director, Watchlist
 
 class GenreAdmin(admin.ModelAdmin):
     prepopulated_fields = {'slug': ('name',)}
     search_fields = ['title',]
     prepopulated_fields = {'slug': ('title',)}
 
+class WatchlistAdmin(admin.ModelAdmin):
+    filter_horizontal = ('movies', 'genres',)
+
 admin.site.register(Genre, GenreAdmin)
 admin.site.register(Movie, MovieAdmin)
 admin.site.register(Director)
+admin.site.register(Watchlist, WatchlistAdmin)