fix: migrate does not recognise attribute changes for string primary key (#428)
* refactor: show warning for unsupported pk field changes * fix: migrate does not recognise attribute changes for string primary key * docs: update changelog * refactor: reduce indents * chore: update docs
This commit is contained in:
@@ -77,6 +77,7 @@ class Product(Model):
|
||||
|
||||
|
||||
class Config(Model):
|
||||
slug = fields.CharField(primary_key=True, max_length=10)
|
||||
category: fields.ManyToManyRelation[Category] = fields.ManyToManyField("models.Category")
|
||||
categories: fields.ManyToManyRelation[Category] = fields.ManyToManyField(
|
||||
"models.Category", through="config_category_map", related_name="config_set"
|
||||
|
||||
Reference in New Issue
Block a user