UniqueTogetherWithPkValidator
Overview
A validator like UniqueTogetherValidator, but returns the pk of the conflicting object in the ValidationError.
call {#call}
Call self as a function.
Signature {#call-signature}
__call__(self, attrs, serializer)
Parameters {#call-parameters}
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| attrs | yes | ||
| serializer | yes |
Source {#call-source}
server/vueda/core/validators.py:16
Source
server/vueda/core/validators.py:10