aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTom Christie2014-11-19 13:55:10 +0000
committerTom Christie2014-11-19 13:55:10 +0000
commit8586290df80ac8448d71cdb3326bc822c399cad1 (patch)
tree25b657c1bf29547c9380816d5fc8b4f42854ceba /tests
parent6cb6510132b319c96b28bea732032aaf2d495895 (diff)
downloaddjango-rest-framework-8586290df80ac8448d71cdb3326bc822c399cad1.tar.bz2
Apply defaults and requiredness to unique_together fields. Closes #2092.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_validators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_validators.py b/tests/test_validators.py
index 86614b10..1df0641c 100644
--- a/tests/test_validators.py
+++ b/tests/test_validators.py
@@ -88,8 +88,8 @@ class TestUniquenessTogetherValidation(TestCase):
expected = dedent("""
UniquenessTogetherSerializer():
id = IntegerField(label='ID', read_only=True)
- race_name = CharField(max_length=100)
- position = IntegerField()
+ race_name = CharField(max_length=100, required=True)
+ position = IntegerField(required=True)
class Meta:
validators = [<UniqueTogetherValidator(queryset=UniquenessTogetherModel.objects.all(), fields=('race_name', 'position'))>]
""")