mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02: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:
@@ -401,8 +401,6 @@ class RetrieveUpdateAPIView(RetrieveAPIView, generics.RetrieveUpdateAPIView):
|
|||||||
|
|
||||||
def pre_save(self, obj):
|
def pre_save(self, obj):
|
||||||
super(RetrieveUpdateAPIView, self).pre_save(obj)
|
super(RetrieveUpdateAPIView, self).pre_save(obj)
|
||||||
if isinstance(obj, PrimordialModel):
|
|
||||||
obj.created_by = self.request.user
|
|
||||||
|
|
||||||
def update(self, request, *args, **kwargs):
|
def update(self, request, *args, **kwargs):
|
||||||
self.update_filter(request, *args, **kwargs)
|
self.update_filter(request, *args, **kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user