CAVaccineInventory / vial

The Django application powering calltheshots.us

Home Page:https://vial.calltheshots.us

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LocationReviewTag.DoesNotExist: LocationReviewTag matching query does not exist.

sentry-io opened this issue · comments

Sentry Issue: VIAL-C5

LocationReviewTag.DoesNotExist: LocationReviewTag matching query does not exist.
(12 additional frame(s) were not displayed)
...
  File "django/contrib/admin/options.py", line 1586, in _changeform_view
    self.save_model(request, new_object, form, not add)
  File "core/admin.py", line 802, in save_model
    self.create_approved_review_note(obj, author=request.user)
  File "core/admin.py", line 781, in create_approved_review_note
    note.tags.add(LocationReviewTag.objects.get(tag="Approved"))
  File "django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "django/db/models/query.py", line 435, in get
    raise self.model.DoesNotExist(

I manually fixed this issue in production by adding an "Approved" tag here: https://vial.calltheshots.us/admin/core/locationreviewtag/1/change/