Once you have your 'stage' instance, try this:

stage._meta.get_all_related_objects()

You can get related models dynamically and check to see if there are
actually related instances for each of them.
Play with _meta in the shell and you'll find interesting and useful things.

Despite the underscore prefix, _meta is kept pretty stable and is used
often by normal users.

Shawn

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to