Many-to-many relation creates new items after migration

I've migrated db from SQLite to PostgreSQL as the book Django 5 by Example told, but I have a simple bug. In the Post module, I have this relation declared:

class Post(models.Model):
    ...
    tags = TaggableManager()

After migration, I don't see tags that I've included before. I can see old tags in the admin panel, and I can see new tags in the blog page.

In the shell, post.tags.all() only shows new tags.

Вернуться на верх