diff options
| author | Tom Christie | 2012-11-05 12:51:04 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-11-05 12:51:04 +0000 |
| commit | 33be4b43b95273da117f6896adc7814aaedf43fa (patch) | |
| tree | ac203801b75a0c4681d0b44d1626d95c87c5bb47 /rest_framework/tests/pk_relations.py | |
| parent | ccd5f29510bd39e85ea8267836e42545370fff1e (diff) | |
| download | django-rest-framework-33be4b43b95273da117f6896adc7814aaedf43fa.tar.bz2 | |
`queryset` argument is now optional on writable model fields.
Diffstat (limited to 'rest_framework/tests/pk_relations.py')
| -rw-r--r-- | rest_framework/tests/pk_relations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/pk_relations.py b/rest_framework/tests/pk_relations.py index 89f53316..94709810 100644 --- a/rest_framework/tests/pk_relations.py +++ b/rest_framework/tests/pk_relations.py @@ -15,7 +15,7 @@ class ManyToManySource(models.Model): class ManyToManyTargetSerializer(serializers.ModelSerializer): - sources = serializers.ManyPrimaryKeyRelatedField(queryset=ManyToManySource.objects.all()) + sources = serializers.ManyPrimaryKeyRelatedField() class Meta: model = ManyToManyTarget |
