#19721: Django admin allows filtering using the field lookups such as "in", but 
it
is impossible to include a value that contains a comma
-------------------------------+--------------------
     Reporter:  aruseni        |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  contrib.admin  |    Version:  1.4
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 The admin site allows you to filter the queryset in the changelist in a
 plenty of different ways. Notably, it allows you to filter the records by
 multiple values (if the field's value is one of the specified value
 options, then such record is considered matching).

 For example, you can test it with a query string like this:


 {{{
 /admin/auth/user/?username__in=johnny,viola,gordon
 }}}

 Unfortunately, there is a big limitation at the moment: you can't include
 a value option that contains a comma (or a few).

 The function that splits the string is '''prepare_lookup_value''', found
 in
 [https://github.com/django/django/blob/master/django/contrib/admin/util.py
 contrib.admin.util].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19721>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to