#15673: Allow limit_choices_to to use a tuple for __in filters -----------------------------------------+---------------------- Reporter: EnTeQuAk | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: SVN Resolution: | Keywords: Triage Stage: Unreviewed | Has patch: 1 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | -----------------------------------------+---------------------- Changes (by EnTeQuAk):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: sorry for the bad formatting... If one is to use `myfield = models.ForeignKey(MyModel, limit_choices_to={'valuein': ('one', 'two')})` this fails if rendered with `django.contrib.admin.widgets:url_params_from_lookup_dict` I attached a Diff that adds a unittest and the fix. -- Ticket URL: <http://code.djangoproject.com/ticket/15673#comment:1> 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.