mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-28 12:34:00 +03:00
No fitler description if no filter_fields defined.
This commit is contained in:
parent
7937546177
commit
8253db67cc
|
@ -835,6 +835,8 @@ class FilterMixin(object):
|
||||||
|
|
||||||
desc = super(FilterMixin, self).get_description(html)
|
desc = super(FilterMixin, self).get_description(html)
|
||||||
|
|
||||||
|
if not len(self.filter_fields): return desc
|
||||||
|
|
||||||
filter_desc_req = u' (required)' if self.filter_required else u''
|
filter_desc_req = u' (required)' if self.filter_required else u''
|
||||||
|
|
||||||
# Sort fields and lookup suffixes in alphabetical order for readability.
|
# Sort fields and lookup suffixes in alphabetical order for readability.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user