shop.category: Reverse query name for field 'parent_category' clashes with related field 'Category.category'. Add a related_name argument to the definition for 'parent_category'.
django version 1.3.1
python version 2.7.2
shop.category: Reverse query name for field 'parent_category' clashes with related field 'Category.category'. Add a related_name argument to the definition for 'parent_category'.
django version 1.3.1
python version 2.7.2
Yes, you need to add a related_name argument to the appropriate field in your model. See https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.related_name