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.

I have created an initial stab at adding this data to the related
managers as well as tests to help explain what data these new
attributes expose. I think it might be easiest to start the discussion
from working code, but I was hoping to get feedback about the idea in
general, as well as the implementation and attribute naming
convention.

http://github.com/nowells/django/compare/master...manager-enhancements

Does this feature make sense? Do you feel that the data is exposed in
the correct way? Are the tests sufficient? If so, I would be happy to
give a stab at adding documentation, I just wanted to see if the
concept stood the tests of scrutiny and utility.

Thanks!
Nowell Strite

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

Reply via email to