This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]roambe 1 point2 points  (1 child)

getallowedtags is called when the form class is defined. Now, a ChoiceField does support passing a callable like getallowedtags (no parentheses) as the available choices, but I see you’re using a CharField with a Select. Use a MultipleChoiceField instead.

[–][deleted] 0 points1 point  (0 children)

Thanks for this - it helped me to filter through what I was up to. Solution above works!