mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-16 11:12:21 +03:00
Add enum type for ordering fields.
This commit is contained in:
parent
fc98d3598d
commit
de9802b300
|
@ -375,5 +375,6 @@ class OrderingFilter(BaseFilterBackend):
|
||||||
'schema': {
|
'schema': {
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
},
|
},
|
||||||
|
'enum': view.ordering_fields
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user