javrasya / django-river

Django workflow library that supports on the fly changes ⛵
BSD 3-Clause "New" or "Revised" License
742 stars 105 forks source link

It keeps recreating migration for models that have state field #77

Closed javrasya closed 5 years ago

javrasya commented 5 years ago

Description:

Because django-river uses a random related_name in the state field, Django thinks that the state field got updated every time we run makemigrations. It should not be recreating it.

superandrew commented 5 years ago

@javrasya of course, sorry for delay, I was posting the content of the migration but I guess you were able to recreate it.

javrasya commented 5 years ago

@superandrew can you try v1.0.2 which has just been published. It must re-create the migration once and for all now.

superandrew commented 5 years ago

I installed 1.0.2 from pip and I can confirm that the migration isn't generated anymore in my project.

javrasya commented 5 years ago

Thank you for the contribution @superandrew . Please keep up reporting when you face some bugs. 🙏