[Fixed]-How to debug ModelMultipleChoiceField

1👍

You can convert the ModelMultipleChoiceField to a list of strings with

selected_names = [label for value, label in self.fields['names'].choices if value in self['names'].value()]
logger.debug("names %s" % selected_names)

Leave a comment