Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using GeoFeatureModelSerializer with files #278

Open
hvitis opened this issue Dec 31, 2022 · 0 comments
Open

Using GeoFeatureModelSerializer with files #278

hvitis opened this issue Dec 31, 2022 · 0 comments

Comments

@hvitis
Copy link

hvitis commented Dec 31, 2022

Hello

I was wondering if there is a possibility / example of using GeoFeatureModelSerializer with a model that has an image field.
I am trying to do it in a single request using

parser_classes = [MultiPartParser, JSONParser ]

It works with different models, there creation is easy and possible, retaining all fields passed plus the file.

Is it possible with the serializer above? What should be added / changed if so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant