mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Rename the get_queryset
overriding test.
This commit is contained in:
parent
6d95da7b2d
commit
5068ecf64b
|
@ -176,7 +176,7 @@ class TestSlugRelatedField(APISimpleTestCase):
|
||||||
representation = self.field.to_representation(self.instance)
|
representation = self.field.to_representation(self.instance)
|
||||||
assert representation == self.instance.name
|
assert representation == self.instance.name
|
||||||
|
|
||||||
def test_no_queryset_init(self):
|
def test_overriding_get_queryset(self):
|
||||||
qs = self.queryset
|
qs = self.queryset
|
||||||
|
|
||||||
class NoQuerySetSlugRelatedField(serializers.SlugRelatedField):
|
class NoQuerySetSlugRelatedField(serializers.SlugRelatedField):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user