grantmcconnaughey / django-field-history

A Django app to track changes to model fields.
BSD 3-Clause "New" or "Revised" License
314 stars 33 forks source link

renamefieldhistory does not change serialized_data #32

Open vincentwhales opened 6 years ago

vincentwhales commented 6 years ago

I would like to rename the field "status" to "portal_status" in my app. Originally this is what it looks like:

image

I executed python manage.py renamefieldhistory --model=accounts.account --from_field=status --to_field=portal_status and saw that 619 rows were updated.

Upon closer inspection however, I see that field_name is changed but not the field inside serialized_data.

image

This causes my application to crash.

Perhaps we should also parse serialized_data to and modify the keys accordingly?