#17091: Djano 1.4 SimpleListFilter 'selected' option issue
-------------------------------------+-------------------------------------
     Reporter:  tejinderss@…         |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  contrib.admin        |                  Version:  SVN
     Severity:  Normal               |               Resolution:
     Keywords:  SimpleListFilter,    |             Triage Stage:  Design
  FilterSpec                         |  decision needed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by julien):

 * needs_better_patch:   => 0
 * stage:  Unreviewed => Design decision needed
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 What is happening here is that your parameter name ends with "`__in`"
 which is interpreted as if the value passed is a list. So for example
 "`?status__in=0,30,40`" is interpreted as if the value passed is
 `[0,30,40]`, not `"0,30,40"`. To be honest, at this stage I'm not sure if
 it's a bug or a feature.

 If you renamed your parameter to "`status_in`" (with just one underscore)
 then it should just work. I'd like to understand your use case better
 though. Could you please explain your original motivation for having 2
 underscores in the parameter name?

 I'm keen to know to figure out whether we should treat it as a bug or
 rather as an opportunity to build a new feature around it. Thanks!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17091#comment:1>
Django <https://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to