> >>> p.gallery_id.created_id
>
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in ?
> AttributeError: 'long' object has no attribute 'created_id'
>
> Where is a problem?
your photo object "p" has an attribute "gallery" which references a gallery 
object (the one with id=p.gallery_id) and this gallery object in turn has an 
attribute "created" which references a user object (the one with 
id=p.gallery.created_id).

therefore I wrote

        wanted_user = particular_photo.gallery.created

does that not work?
-- 
cheers,

        Nikl

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to