﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6264	Field with Choices and radio_admin=True has a bad css class attribute	Gregory Taylor <gtaylor@…>	nobody	"I've defined a model that has a field that looks like this:
comparison_cspace = models.CharField(max_length=3, choices=COMPARISON_CSPACES, radio_admin=True)

I'm using a generic view to render the form, and it's outputting something like this:
<ul class=""radiolist inline"">
  <li>
    <input type=""radio"" id=""id_comparison_cspace_0"" name=""comparison_cspace"" value=""SPE""/> 
    <label for=""id_comparison_cspace_0"">Spectral</label>
  </li>
  <li>
    <input type=""radio"" id=""id_comparison_cspace_1"" name=""comparison_cspace"" value=""LAB""/> 
    <label for=""id_comparison_cspace_1"">Lab</label>
  </li>
  <li>
    <input type=""radio"" id=""id_comparison_cspace_2"" name=""comparison_cspace"" value=""LCH""/> 
    <label for=""id_comparison_cspace_2"">LCH</label>
  </li>
</ul>

I don't think it's even valid to have spaces in class attributes in css:

class=""radiolist inline""

My CSS definition would have to look like:
.radiolist inline { blah }

Which would translate to an element named radiolist that is of tag 'inline', which there is none. It'd be great if the generic view would stick an underscore in there to be like:

class=""radiolist_inline""

So I could actually style this :)

Thanks!"		closed	Generic views	dev		invalid	generic view,choices,css		Unreviewed	0	0	0	0	0	0
