Should ignore any invalidly formed query parameters for OrderingFilter. · Issue #4989 · encode/django-rest-framework (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@hvdklauw

Description

@hvdklauw

Checklist

Steps to reproduce

Expected behavior

No ordering to be applied

Actual behavior

Throws a 500 error because --field_name is passed to the queryset because over here an lstrip is done instead of just removing the first - character before validation.