Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit form should preserve changes when there's an error #21

Open
sburnett opened this issue May 15, 2012 · 0 comments
Open

Edit form should preserve changes when there's an error #21

sburnett opened this issue May 15, 2012 · 0 comments
Assignees

Comments

@sburnett
Copy link
Contributor

What happens now: if the edit form doesn't validate (e.g., you forget to fill in one field), you get a new page with a very generic, unhelpful error message ("One for more fields were invalid.") and must click a button to try again. Once you click the button, all form fields are reverted to their unedited state.

What should happen: if the form doesn't validate, the form should be redisplayed with an error message at the top and brief markers (eg., an X) near each invalid field. The form's contents should exactly match before and after the invalid submission; you shouldn't discard changes.

There are standard techniques for doing this in Django. See https://docs.djangoproject.com/en/dev/topics/forms/

@ghost ghost assigned aroberts3 May 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants