diff options
| author | Tom Christie | 2014-11-19 13:55:10 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-11-19 13:55:10 +0000 | 
| commit | 8586290df80ac8448d71cdb3326bc822c399cad1 (patch) | |
| tree | 25b657c1bf29547c9380816d5fc8b4f42854ceba /tests | |
| parent | 6cb6510132b319c96b28bea732032aaf2d495895 (diff) | |
| download | django-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.py | 4 | 
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'))>]          """) | 
