Lu Ali
unread,May 15, 2013, 10:28:50 PM5/15/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-res...@googlegroups.com
Hello,
just started using this framework and I have a requirement, whereby some logic is required in the serializer to check whether an update can proceed or not.
My view is
===========================================
class UserUpdate(generics.UpdateAPIView):
permission_classes = (UserUpdatePermission,)
serializer_class = UserSerializer
Serializer
===========================================
class UserUpdateSerializer(serializers.ModelSerializer):
class Meta:
model = User
# some function here that checks if can be updated or not.
def ..
what function to override?
Thanks
Lu