mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-11-01 10:33:53 +00:00
[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:
1 parent
e15de01cfa
commit
347e189a96
1 file changed
+2
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user