Hi there!I started using ViewSets recently, I went through the documentation but I can't do a couple of things that I need to do:1) When presented with the form (POST), all fields are required despite the fact that I specified that some fields should not be required in the serializer,# views.pyclass PersonViewSet(viewsets.ModelViewSet):serializer = PersonSerializer(data=request.data)if serializer.is_valid():post = Person()......
2) This is just a comment: I use databases that are not directly supported by Django (Neo4J, Cassandra), my understanding is that I should override class methods (list, create, retrieve, update, destroy). Am I right?
Please give me some ideas on how to approach these issues or a practical tutorial that I can follow.Regards,Patrick
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| | Filipe Ximenes +55 (81) 8245-9204 Vinta Software Studio http://www.vinta.com.br |
--
You received this message because you are subscribed to a topic in the Google Groups "Django REST framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-rest-framework/Z2AGFu7zCNE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-rest-fram...@googlegroups.com.