RS7
RS7

Reputation: 2361

Django - CheckboxSelectMultiple without list?

I'm trying to use form's CheckboxSelectMultiple widget but I I'd like to change the way it is outputted. Is there a way to remove or change the <li> to something else?

Upvotes: 4

Views: 1243

Answers (1)

jterrace
jterrace

Reputation: 67063

The implementation of CheckboxSelectMultiple is hard-coded to use a <ul><li></li></ul> form. The only way to change it would be to subclass the object and override the render method.

Upvotes: 5

Related Questions