Rename preform_update to perform_update

This commit is contained in:
Andy Freeland 2014-10-12 01:19:14 -04:00
parent 826b5a8897
commit 81abf2bf34

View File

@ -67,10 +67,10 @@ class UpdateModelMixin(object):
instance = self.get_object()
serializer = self.get_serializer(instance, data=request.data, partial=partial)
serializer.is_valid(raise_exception=True)
self.preform_update(serializer)
self.perform_update(serializer)
return Response(serializer.data)
def preform_update(self, serializer):
def perform_update(self, serializer):
serializer.save()
def partial_update(self, request, *args, **kwargs):