Update medialibrary/views.py