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:
Matthew Jones 2014-01-31 07:00:21 -05:00
parent 380f6c6d6f
commit bb0a2887d5

View File

@ -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)