I'm setting up a foreignkey field in my model as follows:

        InventoryFunction =
models.ForeignKey('AppSettings.InventoryOption',
verbose_name=_('InvFunction'), related_name='InvFunction',blank=False,
null=False)

result from syncdb:


scanning.inventory: Accessor for field 'InventoryFunction' clashes
with related field 'InventoryOption.InvFunction'. Add a related_name
argument to the definition for 'InventoryFunction'.
scanning.inventory: Reverse query name for field 'InventoryFunction'
clashes with related field 'InventoryOption.InvFunction'. Add a
related_name argument to the definition for 'InventoryFunction'.
scanning.inventoryhistory: Accessor for field 'InventoryFunction'
clashes with related field 'InventoryOption.InvFunction'. Add a
related_name argument to the definition for 'InventoryFunction'.
scanning.inventoryhistory: Reverse query name for field
'InventoryFunction' clashes with related field
'InventoryOption.InvFunction'. Add a related_name argument to the
definition for 'InventoryFunction'.


why am i getting these errors when i do have related_name argument
setup?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to