[Answer]-Initial multiple values in select fields

1👍

for k in keyword:
    keyword_list.append(k.genre) 
    print k.genre 

form=ChangeProfile(request.POST,initial={'keyword':keyword_list},)

Mind the indentation. If your request.POSTcontains a value for keyword, you’ll lose your initial values.

Leave a comment