mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Fix AC-998, Don't set created_by on the object when updating the object (only when creating). activity stream will save modifications and who made them
This commit is contained in:
parent
380f6c6d6f
commit
bb0a2887d5
@ -401,8 +401,6 @@ class RetrieveUpdateAPIView(RetrieveAPIView, generics.RetrieveUpdateAPIView):
|
||||
|
||||
def pre_save(self, obj):
|
||||
super(RetrieveUpdateAPIView, self).pre_save(obj)
|
||||
if isinstance(obj, PrimordialModel):
|
||||
obj.created_by = self.request.user
|
||||
|
||||
def update(self, request, *args, **kwargs):
|
||||
self.update_filter(request, *args, **kwargs)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user