Re: How to trigger a function with an update view

2022-02-13 Thread 'MH' via Django users
Thanks for the specific advice. I will try that. On Sunday, February 13, 2022 at 9:33:16 AM UTC+1 sebasti...@gmail.com wrote: > Hello, > > You overwright in forms.py in your form save() > > Example: > > def save(self, commit=True): > instance = super(MyForm, self).save(commit=False) > ins

Re: How to trigger a function with an update view

2022-02-13 Thread Sebastian Jung
Hello, You overwright in forms.py in your form save() Example: def save(self, commit=True): instance = super(MyForm, self).save(commit=False) instance.flag1 = 'flag1' in self.cleaned_data['multi_choice'] # etc if commit: instance.save() return instance 'MH' via Django u