#9954: admin change list: list_filter section breaks when using named groups in
the choices field option
-------------------------------------------+--------------------------------
          Reporter:  ramiro                |         Owner:  SantiagoZarate     
                                   
            Status:  assigned              |     Milestone:                     
                                   
         Component:  django.contrib.admin  |       Version:  SVN                
                                   
        Resolution:                        |      Keywords:  liste_filter 
choices nested option gropus named tuples
             Stage:  Unreviewed            |     Has_patch:  1                  
                                   
        Needs_docs:  0                     |   Needs_tests:  0                  
                                   
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by SantiagoZarate):

  * owner:  ramiro => SantiagoZarate
  * status:  new => assigned

Comment:

 I patched my filterspecs.py ... it works fine on the filter... but now
 came with few new problems:

   * There's no hierarchy level on the filter
   * It saves the selected value (even if it is nested at some point) but
 doesnt shows the correct values on the item list

 http://imagenes.zarate.net.ve/django/9955-no-hierarchy-no-category-
 names.png

   * It doesn't supports more than two levels (at third it saves the
 third's name "nested" in the following example) and in the select box on
 the interface it shows this: http://imagenes.zarate.net.ve/django/9954
 -nested-choices-wont-work.png


 {{{
 #!python
 #having:
 #models.py
 from django.db import models

 ITEM_TREE = (
    ('Outer 1', (
        ('inner1', 'Inner 1'),
        ('inner2', 'Inner 2'),
        ('nested', (
             ('a', 'This is nested'),
             ('b', 'way down'))
        ))),
     ('Testing', 'net'),
 )



 class Item(models.Model):
     name = models.CharField(max_length=60)
     category = models.CharField("Item Category", max_length=20,
 choices=ITEM_TREE)
 }}}

 sorry if i'm putting some extra stuff here... there is a ticket:9949
 ticket already but its a different problem than this one....

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9954#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to