Tested and added release process to readme, also some minor changes to change confirm
This commit is contained in:
@@ -147,6 +147,9 @@ class AdminConfirmMixin:
|
||||
else:
|
||||
# Parse the changed data - Note that using form.changed_data would not work because initial is not set
|
||||
for name, field in form.fields.items():
|
||||
# Since the form considers initial as the value first shown in the form
|
||||
# It could be incorrect when user hits save, and then hits "No, go back to edit"
|
||||
obj.refresh_from_db()
|
||||
initial_value = getattr(obj, name)
|
||||
new_value = getattr(new_object, name)
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user