diff --git a/oxdata/lookup/views.py b/oxdata/lookup/views.py index 5bc8de3..4c72896 100644 --- a/oxdata/lookup/views.py +++ b/oxdata/lookup/views.py @@ -33,6 +33,9 @@ def get_movie_id(request): elif 'criterion' in request.GET: criterion_id = request.GET['criterion'] movie_id = models.MovieId.objects.get(criterion_id=criterion_id) + elif 'wikipedia' in request.GET: + wikipedia_id = request.GET['wikipedia'] + movie_id = models.MovieId.objects.get(wikipedia_id=wikipedia_id) if movie_id: movie_id.updateFromImdb() return movie_id