I have models M, N, which both have a foreignkey to User. When in the
shell/runserver, User has attributes for both M and N, but in a
batchfile ($ DJANGO_SETTINGS_MODULE=settings python batch.py) only M
is reachable from User while trying to get N leads to

AttributeError: 'User' object has no attribute 'N_set'

Wherever and how do I start debugging something like this?


HM

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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=.


Reply via email to