Reverse Query Name Clash

18 views
Skip to first unread message

torste...@gmail.com

unread,
Jun 23, 2017, 1:17:55 PM6/23/17
to django-taggit
Hi Folks,
I have a model class Name with the following field:  tags = TaggableManager(related_name="a_unique_related_name")
When I start the app, I get the error:
       appname.Name.tags: (fields.E303) Reverse query name for 'Name.tags' clashes with field name 'Tag.name'.
HINT: Rename field 'Tag.name', or add/change a related_name argument to the definition for field 'Name.tags'.

I've attempted adding the related_name argument and creating a custom tag, inheriting from TagBase, but a similar error is returned. If I add a tags field to another model the app runs successfully.

Any idea for a work-around?

Thanks!

Reply all
Reply to author
Forward
0 new messages