-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation problem: parent
isn't set for nested serializer's fields on the validation stage
#1
Comments
Same as #28 |
I believe this fixes it: #29 |
Now we are working on a workaround for this issue |
There is an example how to get a workaround: |
but DRF also proposes way to deal with bulk updates by explicitly including id field (as not read_only) this way, one get instance from id ps.: in my case I had custom kind of uniqueness validation (checked if objects not overlap), so I excluded current instance by id in my validation query. |
Would UniqueFieldsMixin move validations of unique_together as well? |
I had found a problem on the validation stage when I used
UniqueValidator
for nested serializer's field.I've found the root of the problem - parent isn't set on the validation stage.
The text was updated successfully, but these errors were encountered: