how to store svgs in django image field with SVGAndImageFormField
class MyModelForm(forms.ModelForm):
class Meta:
model = MyModel
exclude = [=+=]
field_classes = {
'image_field': SVGAndImageFormField,
}
class MyModelAdmin(admin.ModelAdmin):
form = MyModelForm
admin.site.register(MyModel, MyModelAdmin)