On Thu, 2008-04-24 at 08:55 -0700, Merrick wrote: [...] > ***Shell output > > >>> from photologue.models import * > >>> photo = Photo.objects.get(slug='golf-course-3') > >>> photo.place.city.state_slug > Traceback (most recent call last): > File "<console>", line 1, in ? > AttributeError: 'City' object has no attribute 'state_slug'
This is telling you exactly what the error is. You're accessing a non-existent attribute on the City model. Maybe you mean to state.slug instead of state_slug or maybe you mean something else there. In any case, there is no state_slug attribute. Malcolm -- He who laughs last thinks slowest. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---