Re: Accessor for field 'user' clashes with related field 'User.*'

2008-10-23 Thread lcordier
Found the bug in settings.py, one of the installed apps had a little mistake. Was 'apps/app' instead of 'apps.app'. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Accessor for field 'user' clashes with related field 'User.*'

2008-10-22 Thread Peter Bengtsson
I don't see what splitting it up into "sub apps" has anything to do with it? What happens when you add the related_name attribute to your model fields? Here's some code from one of my apps: class M(models.Model): ... from_user = models.ForeignKey(User, null=True, related_name='from')