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

Remove pretty-print from the JSON field output or make it configurable #53

Closed
kabakchey opened this issue Dec 27, 2016 · 2 comments
Closed

Comments

@kabakchey
Copy link
Contributor

Pretty-print adds huge space overhead to the output. This feature doesn't give any options in case when we want to inherit the class for encryption except using v0.8.7 which is the latest one without pretty-print.

@skorokithakis
Copy link
Owner

That's a good idea, ideally you could pass a function to the field to be called on the JSON string before saving. Something like JSONField(transform_func=pprint.pprint). Would you be interested in issuing a PR?

@skorokithakis
Copy link
Owner

Thank you!

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

2 participants