Keeping values in browsable api on error · Issue #3024 · encode/django-rest-framework (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Values entered in the browsable api list view html form are currently cleared on an error. This means that a user would have to re-enter the entirety of what they put in before. Instead, the values should be kept so the user can remedy the incorrect fields and keep what they have already entered.
Steps to reproduce:
- Navigate to browsable api list view page.
- Enter some values into the html form fields, but leave some empty or invalid.
- Post the form.
- Error is produced.
This also occurs on detail view even though the form is already prefilled with information.