<s> from django import forms <EOL> class CollectionSelectForm ( forms . Form ) : <EOL> collections = forms . MultipleChoiceField ( ) <EOL> def __init__ ( self , group_object = None , extra_fields = None , * args , ** kwargs ) : <EOL> super ( CollectionSelectForm , self ) . __init__ ( * args , ** kwargs ) <EOL> choices = tuple ( ( number , c [ <NUM_LIT:0> ] ) for number , c in enumerate ( group_object . get_newsletter_receiver_collections ( ) ) ) <EOL> self . fields [ '<STR_LIT>' ] . choices = choices <EOL> for key , field in extra_fields . items ( ) : <EOL> self . fields [ key ] = field </s>
