Changes between Version 2 and Version 3 of Ticket #28059


Ignore:
Timestamp:
Apr 11, 2017, 8:30:13 AM (7 years ago)
Author:
Tim Graham
Comment:

It's a regression in 1.11 caused by template-based widget rendering.

In older versions, the generated HTML looks like: <ul class="radiolist inline" id="id_age"> but the classes are now missing as the multiple_input.html template doesn't consider them.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28059

    • Property Severity NormalRelease blocker
    • Property Triage Stage UnreviewedAccepted
    • Property Summary Admin page cannot render horizontal radio buttonsModelAdmin.radio_fields doesn't render admin.HORIZONTAL CSS classes
    • Property Version master1.11
  • Ticket #28059 – Description

    v2 v3  
    22
    33{{{
    4 class Person(Models.model):
    5     age = CharField(choices = (('Y', 'Young'), ('O', 'Old')))
     4class Person(models.Model):
     5    age = models.CharField(max_length=1, choices=(('Y', 'Young'), ('O', 'Old')))
    66}}}
    77We want to display the choice of age in our admin change page in radio buttons, so we have the following codes in `admin.py`
Back to Top