class documentation
class UniqueValidator: (source)
Validator that corresponds to `unique=True` on a model field. Should be applied to an individual field on the serializer.
Method | __call__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | exclude |
If an instance is being updated, then do not include that instance itself as a uniqueness conflict. |
Method | filter |
Filter the queryset to all instances matching the given attribute. |
Class Variable | requires |
Undocumented |
Instance Variable | lookup |
Undocumented |
Instance Variable | message |
Undocumented |
Instance Variable | queryset |
Undocumented |