mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-16 03:02:37 +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': {
|
||||
'type': 'string',
|
||||
},
|
||||
'enum': view.ordering_fields
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user