Sunday, January 29, 2012

Print list with select related with reverse foreign key

I have two models
http://paste.ideaslabs.com/show/BN0e2z4NSa

I want to print a list of ads (title,slug, and thumb_photo)

How can I make this list, since the key is reverse?

Something like this SQL: http://paste.ideaslabs.com/show/Iw8ii2noz


Sorry for my bad English.

I'm from brazil

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/PDKKiNjNrPMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment