Keeping values in browsable api on error · Issue #3024 · encode/django-rest-framework (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@ashleyredzko

Description

@ashleyredzko

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:

  1. Navigate to browsable api list view page.
  2. Enter some values into the html form fields, but leave some empty or invalid.
  3. Post the form.
  4. Error is produced.

This also occurs on detail view even though the form is already prefilled with information.