fix: migration with duplicate renaming of columns in some cases (#395)

* fix: migration with duplicate renaming of columns in some cases

* Update var name

* fix downgrade sql error

* fix test error

* docs: update changelog

* Add unittest

* Move not change line to origin position

* Update sort key to make it more frieldly interactive from multi fields rename

* refactor: remove puzzle vars

* docs: fix PR links in changelog

* fix sort key lambda error
This commit is contained in:
Waket Zheng
2024-12-27 12:09:23 +08:00
committed by GitHub
parent 7d22518c74
commit 5e8a7c7e91
5 changed files with 149 additions and 63 deletions

View File

@@ -81,6 +81,7 @@ class Product(Model):
pic = fields.CharField(max_length=200)
body = fields.TextField()
created_at = fields.DatetimeField(auto_now_add=True)
is_deleted = fields.BooleanField(default=False)
class Meta:
unique_together = (("name", "type"),)