Fairly simple: Which method can be overwritten after "clean" method? I am using "clean" to verify an uploaded image and once I confirmed it is ok and saved, I want to switch it using some external API:
class FooAdminForm(forms.ModelForm):
class Meta:
model = Asset
fields = ["name", "file",]
def clean(self):
cleaned_data = super(FooAdminForm, self).clean()
...
return cleaned_data
def bar(self):
# do stuff with new data in database
class FooAdmin(admin.ModelAdmin):
list_display = ["name", "file",]
form = FooAdminForm
is there some method bar that can do what I need? Or do I have to wrestle with a signal (like here)?