On Thu, Jul 8, 2010 at 10:45 PM, Nowell Strite <now...@strite.org> wrote: > Recently I started working on a project (django-versions) to enable > versioning of model data with Mercurial. In doing so, I came across > the need to have access to more data about the relationships that > Django Related Manager's create. For example, I wanted to be able to > access the instance of the model that a related manager was called > from, as well as the field names for the forward and reverse > relationship.
You won't get any argument from me that this sort of metadata should be available; however, I'm fairly certain it already is: artist1.songs.model_attname ==> Artist.songs.field.rel.related_name artist1.songs.related_model_instance ===> artist1 (not sure why this one is required) artist1.songs.related_model_attname ==> Artist.songs.field.name Have I missed something? Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.