Tested and added release process to readme, also some minor changes to change confirm

This commit is contained in:
Thu Trang Pham
2021-02-09 17:28:32 -08:00
parent d334ec630f
commit c381eb4b87
5 changed files with 44 additions and 2 deletions
+3
View File
@@ -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 (