Hi, On Tuesday 17 June 2014 16:41:04 Jason Skicewicz wrote: > > > > AttributeError: 'str' object has no attribute '_meta' > > I'm at a loss as to why this is happening, but through debugging, when > Django attempts to get the field via script, lookup_model is a string > whereas in the view code, it's a model instance. Not sure if this is a > known problem or not, and my solution to date has been to make two separate > queries in scripts instead of doing the join. But the inconsistency is > driving me a bit mad. > > Any ideas on a resolution to the problem? > I'm not sure -- but it may be that your 'fixupthemes.FixupThemeTime' model is not loaded in the script. Try adding an explicit import of it before the query.
If this works, then: a) The issue has been resolved in 1.7 by the app-load refactor; b) This does belong on django-users. HTH, Shai. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/17548403.H7UI5kZcvN%40deblack. For more options, visit https://groups.google.com/d/optout.