[FEAT] Allow admins to manage relationships for all Persons

All Persons now have associated Users, meaning Users can be hijacked by admins to manage the relationships for the associated Person.
This commit is contained in:
2023-03-12 15:39:03 +00:00
parent 284132f4cc
commit f8593776c0
4 changed files with 25 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ class RelationshipCreateView(LoginRequiredMixin, RedirectView):
except ObjectDoesNotExist:
# User has no linked Person yet
return reverse('people:person.create') + '?user'
return reverse('people:person.create')
return reverse('people:relationship.update',
kwargs={'pk': relationship.pk})