July 8th, 2009 posted by Bender Rodríguez
You create a form widget that extends the CheckboxSelectMultiple
class CheckboxSelectMultiple(widgets.CheckboxSelectMultiple):
"""
Simply adds a class to the ul element,
which allows the CSS to select it.
"""
def render(self, *args, **kwargs):
output = super(CheckboxSelectMultiple,
self).render(*args,**kwargs)
return mark_safe(output.replace(u'<ul>',
u'<ul class="checkbox- select">'))
0 Comments,
0 trackbacks
(Trackback URL)
"All we have to do is send two mujahedin ... [and] raise a piece of cloth on which is written 'Al Qaeda' in order to make the generals race there, to cause America to suffer human, economic and political losses."
Osama bin Laden