If I have a default serializer using a django model with one of the field 
being unique, data will always have is_valid() False. 
I may be using this data for update (not create), so making this invalid 
does not make sense.

Ideally if id (or primary key is provided), it should mean that the data 
will be used for update and unique validator should not be run.
Currently I can not use model->serialized_data->model save, is_valid fails 
in this case.

I must be missing something obvious. 

validators = [] also did not work, unique validation still happens. How can 
I override it or switch it off.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to