mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +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:
@@ -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