Django-mptt: Неизвестный столбец 'goods_category.lft' в 'where clause'
После обновления django-mptt с 0.11.0 до 0.13.3, я получаю ошибку
Unknown column 'goods_category.lft' in 'where clause'
goods/models.py
class Category(MPTTModel):
...
class Product(models.Model):
category = TreeForeignKey(Category, null=True, blank=True, on_delete=models.CASCADE)
...
goods/views.py
categories = Category.objects.add_related_count(
Category.objects.filter(is_public=True),
Product,
'category',
'count',
cumulative=True
)
goods/templates/goods/sidenav.html
{% recursetree categories %}
<li>
<a href="{{ node.get_absolute_url }}"{% if node.get_absolute_url == path %} class="active" {% endif %}>
{{ node.name }}
</a>
{% if not node.is_leaf_node %}
<ul class="nested vertical menu {% if node.slug not in path %}display-none{% endif %}">
<li class="hide-for-large">
<a href="{{ node.get_absolute_url }}"{% if node.get_absolute_url == path %} class="active" {% endif %}>Show all
</a>
</li>
{{ children }}
</ul>
{% endif %}
</li>
{% endrecursetree %}
manage.py makemigrations - Изменений не обнаружено
manage.py migrate - Нет миграций для применения