[FIX] Edge case bug when viewing Person before user creates their Person

Handle error thrown if user tries to view a Person object's details (/person/xx) before creating their own linked Person object
This commit is contained in:
2023-02-01 18:38:28 +00:00
parent e15de01cfa
commit 347e189a96

View File

@@ -117,6 +117,8 @@ class ProfileView(LoginRequiredMixin, DetailView):
except models.Relationship.DoesNotExist: except models.Relationship.DoesNotExist:
pass pass
except models.Person.DoesNotExist:
pass
return context return context