mirror of
https://github.com/encode/django-rest-framework.git
synced 2026-01-09 18:20:55 +03:00
Update tests/test_validators.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
a4a3093f11
commit
6b875ee912
|
|
@ -795,7 +795,7 @@ class UniqueConstraintWithRelationModel(models.Model):
|
|||
class UniqueConstraintWithRelationModelSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = UniqueConstraintWithRelationModel
|
||||
fields = serializers.ALL_FIELDS
|
||||
fields = '__all__'
|
||||
|
||||
|
||||
class TestUniqueConstraintWithRelationValidation(TestCase):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user