Opened 22 months ago

Last modified 19 months ago

#33871 closed Bug

Bug that occurs when using JSONField and TabularInline — at Version 3

Reported by: Raphael Owned by: nobody
Component: Forms Version: 4.0
Severity: Normal Keywords: JSONField TabularInline
Cc: Carlton Gibson Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description (last modified by Raphael)

Apparently the JSONField field modification in a TabularInline is ignored after a validation error.

To reproduce I attached the generated project based of the basic Django tutorial with changes to use a JSONField and TabularInline

user: admin
password: admin

Sequence:

  1. Edit the Question
  2. Change both Choice Text to "test"
  3. Change both Text (Json) to test
  4. Save
  5. Edit again
  6. Change the two Text (Json) to test 123
  7. Delete the Choice Text field of the second item
  8. Save
  9. Error message will appear
  10. Set the Choice Text field to 'test 123' of the second item
  11. Save
  12. Edit again, only the second item field was changed to test 123

Change History (4)

by Raphael, 22 months ago

Attachment: djangoInlineBug.zip added

comment:1 by Raphael, 22 months ago

Type: UncategorizedBug

comment:2 by Raphael, 22 months ago

Description: modified (diff)

comment:3 by Raphael, 22 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top