jozo / djangorestframework-camel-case2

Camel case JSON support for Django REST framework
Other
1 stars 4 forks source link

Add 'json_underscoreize' as class attribute #7

Closed dgilge closed 5 years ago

dgilge commented 5 years ago

I need more flexibility concerning the underscore and numbers, because I'm using several third-party packages in my project. As a result, I have some fields with and some without an underscore before the number (e.g. field_1 and field2).

My solution for this problem is to be able to choose on a class level which behavior to use.

The motivation for my PR is that I'd like to use a package (and not my repository) for installation.

I'm happy to add some documentation… Just let me know.

jozo commented 5 years ago

It looks good @dgilge . As you said, please add some documentation to README and we can merge this PR. 👍

dgilge commented 5 years ago

Great! I added the documentation.

jozo commented 5 years ago

Thanks @dgilge ! I will release new version soon. 👍