how to store svgs in django image field with svgandimageformfield

Solutions on MaxInterview for how to store svgs in django image field with svgandimageformfield by the best coders in the world

showing results for - "how to store svgs in django image field with svgandimageformfield"
Joy
20 May 2018
1class MyModelForm(forms.ModelForm):
2    class Meta:
3        model = MyModel
4        exclude = []
5        field_classes = {
6            'image_field': SVGAndImageFormField,
7        }
8
9class MyModelAdmin(admin.ModelAdmin):
10    form = MyModelForm
11
12admin.site.register(MyModel, MyModelAdmin)
13
similar questions