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

Drf extra fields base64 integration #445

Merged

Conversation

WasinTh
Copy link
Contributor

@WasinTh WasinTh commented Aug 25, 2019

Add sample code to correctly generate document on Base64ImageField, Base64FileField, Base64FieldMixin of drf-extra-fields project.

@vladdoster
Copy link

vladdoster commented Apr 24, 2020

@WasinTh How would I use the attached code?

@WasinTh
Copy link
Contributor Author

WasinTh commented Apr 25, 2020

@vladdoster I've added the sample code in the documentation. Please look at this link
https://github.com/Hipo/drf-extra-fields/tree/b59c23857fd84d7612bdd7e0714dc317f19602da#drf-yasg-fix-for-base64-fields

The simplest way to use is add all that code block into your views.py.

Regards,
Wasin.th

@vladdoster
Copy link

vladdoster commented Apr 25, 2020

@vladdoster I've added the sample code in the documentation. Please look at this link
https://github.com/Hipo/drf-extra-fields/tree/b59c23857fd84d7612bdd7e0714dc317f19602da#drf-yasg-fix-for-base64-fields

The simplest way to use is add all that code block into your views.py.

Regards,
Wasin.th

That link seems to 404?

@johnthagen
Copy link
Collaborator

A potentially cleaner solution: Hipo/drf-extra-fields#66 (comment)

@JoelLefkowitz JoelLefkowitz merged commit 5774190 into axnsan12:1.21.x Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21.x Release target in 1.21.x documentation Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants