The reason for this restriction may be that you did not have a field named slug in the Category class when you first transferred it (the first migration), and after adding this field to the model, when you started makemigrations , you set the default value for which Something of a static value (i.e. None or 'etc.) and which violated the unique delimiter for the column column of the Category table, in which slug must be unique, but this is not because the entire record will receive this default value.
To solve this problem, you can delete the database and migration files and re-run makemigrations and migrate or set a unique default value like this:
slug = models.SlugField(unique=True, default=uuid.uuid1)
Edit:
According to this , modify the migration file to overcome the unique delimiter. For example, modify the migration file (which added the bullet field to the model) as follows:
import uuid from app.models import Category
source share