#33871: Bug that occurs when using JSONField and TabularInline
-------------------------------------+-------------------------------------
               Reporter:  raphaelwb  |          Owner:  nobody
                   Type:             |         Status:  new
  Uncategorized                      |
              Component:             |        Version:  4.0
  contrib.admin                      |
               Severity:  Release    |       Keywords:  JSONField
  blocker                            |  TabularInline
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 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:

 01. Edit the Question
 02. Change both Choice Text to "test"
 03. Change both Text (Json) to ["test"]
 04. Save
 05. Edit again
 06. Change the two Text (Json) to ["test 123"]
 07. Delete the Choice Text field of the second item
 08. Save
 09. Error message will appear
 09. Set the Choice Text field to "test 123" of the second item
 10. Save
 11. Edit again, only the second item field was changed to ["test 123"]

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33871>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018241c10200-27efaf57-1154-48e2-9840-9d8851779907-000000%40eu-central-1.amazonses.com.

Reply via email to