mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
pedagogy: fix a bug when updating an UV from a different author
This commit is contained in:
@ -328,7 +328,8 @@ class UVUpdateView(CanEditPropMixin, UpdateView):
|
||||
|
||||
def get_form_kwargs(self):
|
||||
kwargs = super(UVUpdateView, self).get_form_kwargs()
|
||||
kwargs["author_id"] = self.request.user.id
|
||||
obj = self.get_object()
|
||||
kwargs["author_id"] = obj.author.id
|
||||
return kwargs
|
||||
|
||||
def get_success_url(self):
|
||||
|
Reference in New Issue
Block a user