Thank you, I updated get_absolute_url to take into consideration the fact that I was erroneously using state_slug instead of state.slug and the same with photo.slug and place.slug
def get_absolute_url(self): return ('photo-detail', None, { 'state' : self.photo.place.city.state.slug , 'city' : self.photo.place.city.slug, 'place' : self.photo.place.slug, 'slug': self.slug }) >>> from photologue.models import * >>> photo = Photo.objects.get(slug='golf-course-3') >>> photo.get_absolute_url() still getting this error: AttributeError: 'RelatedManager' object has no attribute 'place' On Apr 24, 8:59 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---