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

Collection name mangling #667

Open
mixmastamyk opened this issue Oct 24, 2017 · 2 comments
Open

Collection name mangling #667

mixmastamyk opened this issue Oct 24, 2017 · 2 comments

Comments

@mixmastamyk
Copy link

mixmastamyk commented Oct 24, 2017

Hi, had a model with a compound name similar to "FirstLast". Under the admin it is given an url like "firstlast", but under flask-restless it gets turned into "first_last."

I'm fine with either but believe the admin's version is more common. Might the underscores be removed?

@green3g
Copy link

green3g commented Oct 24, 2017

You can specify a collection_name when you call create_api.

https://github.com/jfinkels/flask-restless/blob/master/flask_restless/manager.py#L446

@mixmastamyk
Copy link
Author

Hi thanks, I've done that, and will have to do it for every model with a compound name.

Seems it would be easier for the admin and flask-restless to match. ;-)

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