Error in Application Process

Error: No Application matches the given query.

Traceback:

Traceback (most recent call last):
  File "/var/www/unis/venv/lib/python3.10/site-packages/django/shortcuts.py", line 90, in get_object_or_404
    return queryset.get(*args, **kwargs)
  File "/var/www/unis/venv/lib/python3.10/site-packages/django/db/models/query.py", line 633, in get
    raise self.model.DoesNotExist(
applications.models.Application.DoesNotExist: Application matching query does not exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/www/unis/applications/views.py", line 141, in edit_application
    application = get_object_or_404(Application, pk=pk, anonymous_id=user_identifier)
  File "/var/www/unis/venv/lib/python3.10/site-packages/django/shortcuts.py", line 92, in get_object_or_404
    raise Http404(
django.http.response.Http404: No Application matches the given query.