You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django REST framework
Hi all, I'm following guide to define serializers http://www.django-rest-framework.org/tutorial/1-serialization/ I would like to modified data before saving to database, but when I check in function create() validated_data value it's returns null object. I'm using http post. Could you guys please help me?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django REST framework
Either use a model serializer or define the fields on which derialization is to be applied when the json data you post is converted into the python dictionary format.
A model serializer if used would pick up the fields from the model otherwise if you wish to have different fields then you must explicitly mention them which you commented in your code