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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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