diff --git a/srs/views.py b/srs/views.py index 0b2c92a..39232fb 100644 --- a/srs/views.py +++ b/srs/views.py @@ -27,8 +27,8 @@ def callback(request): except KeyError: return HttpResponse('1', status=401) try: - app = models.Application.objects.get(name=app_name) - streamkey = models.Streamkey.objects.get(key=stream_name) + application = models.Application.objects.get(name=app_name) + streamkey = models.Streamkey.objects.get(key=stream_name, application=application) except ObjectDoesNotExist: return HttpResponse('1', status=401)