Answers for "how to store svgs in django image field with SVGAndImageFormField"

0

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)
Posted by: Guest on August-19-2021

Code answers related to "how to store svgs in django image field with SVGAndImageFormField"

Python Answers by Framework

Browse Popular Code Answers by Language