Say I have:
class A(models.Model):
    ...
class B(models.Model):
    a = models.ForeignKey(A, unique=True)
    ...
I would like to show  B field in A list_filter.

I've successfull show A fields in B list_filter with this patch:
http://code.djangoproject.com/ticket/3400

As I can't show a field in list_filter if it is not an attribute, I've
thought to create a dummy field in A model and use something like
"list_filter_range" in http://www.djangosnippets.org/snippets/587/

I think this filter implementation should be something like:

class BackwardRelatedFilterSpec(FilterSpec):
....
a_instance.b_set.all()[0]
...

but don't know how could be the concrete implementation.

Could anybody help me?

Last question: should I put a ticket with this question/feature at
django project?

Thanks a lot.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to