You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LogEntry expects changes to be recorded when you edit a DB entry in Django Admin. It parses a JSON snippet during this event.
However, if a record is "updated" but no changes to the fields are made, this JSON changelog snippet is empty while the logic for LogEntry is still expecting there to be JSON to work with. This leads to a 500 error.
Steps to reproduce the bug
Log into the admin panel.
Make changes to an editable record.
Attempt to save - you should experience a 500 crash.
Expected Behavior
The changes should save successfully, and a LogEntry should be created with no JSON, indicating that no changes were actually made.
Describe the bug
LogEntry expects changes to be recorded when you edit a DB entry in Django Admin. It parses a JSON snippet during this event.
However, if a record is "updated" but no changes to the fields are made, this JSON changelog snippet is empty while the logic for LogEntry is still expecting there to be JSON to work with. This leads to a 500 error.
Steps to reproduce the bug
Expected Behavior
The changes should save successfully, and a LogEntry should be created with no JSON, indicating that no changes were actually made.
Code of Conduct
The text was updated successfully, but these errors were encountered: