#31636: Django Bool choices text and admin filter
-----------------------------------------+------------------------
               Reporter:  Maxence G      |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  contrib.admin  |        Version:  3.0
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  1
                  UI/UX:  0              |
-----------------------------------------+------------------------
 If I have such construction:
 {{{
 # models.py
 class BoolTest(models.Model):
     BOUGHT_CHOICES = (
         (False, 'Pending'),
         (True, 'Bought')
     )
     bought = models.BooleanField(
         verbose_name="Fancy Boolean",
         default=False,
         choices=BOUGHT_CHOICES)

 # admin.py
 class BoolTestAdmin(admin.ModelAdmin):
     list_filter = ('bought',)

 admin.site.register(BoolTest, BoolTestAdmin)
 }}}

 The boolean Filter text is not modified to fit choices param

 Example (in FR):

 **FILTRE**
 Par Fancy Boolean
 - Tout
 - Oui
 - Non

 Should be :

 **FILTRE**
 Par Fancy Boolean
 - Tout
 - Bought
 - Pending

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31636>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.28078acfea56801a0dbd68ec7d69daf6%40djangoproject.com.

Reply via email to