Opened 3 years ago
Last modified 3 years ago
#33871 closed Bug
Bug that occurs when using JSONField and TabularInline — at Version 4
| 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 )
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:
- Edit the Question
- Change both Text field to "test"
- Change both JsonField to 'test' (Any Valid Json)
- Save
- Edit again
- Change both two JsonField to 'test 123' (Any Valid Json)
- Delete text from Text field of the second item
- Save
- Error message will appear
- Set the Choice Text field to 'test 123' of the second item
- Save
- Edit again, only the second JsonField was changed to 'test 123' (Any Valid Json)
Change History (5)
by , 3 years ago
| Attachment: | djangoInlineBug.zip added |
|---|
comment:1 by , 3 years ago
| Type: | Uncategorized → Bug |
|---|
comment:2 by , 3 years ago
| Description: | modified (diff) |
|---|
comment:3 by , 3 years ago
| Description: | modified (diff) |
|---|
comment:4 by , 3 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.