-3

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

asf
  • 5
  • 1
  • 4

1 Answers1

3

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

stephenmuss
  • 2,445
  • 2
  • 20
  • 29