#33871: Bug that occurs when using JSONField and TabularInline
-------------------------------------+-------------------------------------
     Reporter:  Raphael WInckler de  |                    Owner:  nobody
  Bettio                             |
         Type:  Bug                  |                   Status:  new
    Component:  contrib.admin        |                  Version:  4.0
     Severity:  Release blocker      |               Resolution:
     Keywords:  JSONField            |             Triage Stage:
  TabularInline                      |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by Raphael WInckler de Bettio:

Old description:

> 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']

New description:

 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 Text field to "test"
 03. Change both JsonField to 'test' (Any Valid Json)
 04. Save
 05. Edit again
 06. Change both two JsonField to 'test 123' (Any Valid Json)
 07. Delete text from 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 JsonField was changed to 'test 123' (Any
 Valid Json)

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33871#comment:4>
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/0107018241cec8e2-2aa9275a-0f05-4553-b5a7-ce1443275974-000000%40eu-central-1.amazonses.com.

Reply via email to