#29488: FilteredSelectMultiple Controls Don't Work if The Name of the Widget 
Has a
Space
-------------------------------------+-------------------------------------
     Reporter:  Mark Phillips        |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.admin        |                  Version:  2.0
     Severity:  Normal               |               Resolution:
                                     |  worksforme
     Keywords:                       |             Triage Stage:
  FilteredSelectMultiple widget      |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 You can attach a file on the ticket or put the minimal project on GitHub.
 I tried this but could not reproduce the problem:
 {{{
 from django.db import models


 class Pet(models.Model):
     name = models.CharField(max_length=20)

     def __str__(self):
         return self.name

 class PetName(models.Model):
     name = models.CharField(max_length=20)

     def __str__(self):
         return self.name

 class Whatever(models.Model):
     pets = models.ManyToManyField(Pet)
     pet_names = models.ManyToManyField(PetName)
 }}}
 {{{
 from django.contrib import admin

 from .models import Pet, PetName, Whatever

 admin.site.register((Pet, PetName))
 admin.site.register(Whatever, filter_horizontal=['pets', 'pet_names'])
 }}}
 The widget says, "Available pet names".

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29488#comment:11>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.84d550ccee99d621fc6d173b2af46620%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to