[Fixed]-Django form: formatting data from an instance before render

1👍

You can override __init__

class MyModelForm(ModelForm)
    def __init__(self, *args, **kwargs):
        super(MyModelForm, self).__init__(*args, **kwargs)
        self.initial['core'] = ",".join(self.instance.core)

Leave a comment