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

eve.exceptions.ConfigException: User.id is not unique #201

Open
waliddamou opened this issue Apr 26, 2020 · 1 comment
Open

eve.exceptions.ConfigException: User.id is not unique #201

waliddamou opened this issue Apr 26, 2020 · 1 comment

Comments

@waliddamou
Copy link

when column name is different from attribute name ('id') , there is a config exception and tells me User.id is not unique.
File "/var/flask_venv/apiv4/lib/python3.6/site-packages/eve_sqlalchemy/config/resourceconfig.py", line 39, in init
self.id_field = id_field or self._deduce_id_field()
File "/var/flask_venv/apiv4/lib/python3.6/site-packages/eve_sqlalchemy/config/resourceconfig.py", line 80, in id_field
.format(model=self.model.name, id_field=id_field))
eve.exceptions.ConfigException: User.id is not unique.

@dkellner
Copy link
Collaborator

Thanks for reporting this! Can you provide a minimal example in the style of https://github.com/pyeve/eve-sqlalchemy/blob/master/eve_sqlalchemy/examples/trivial/trivial.py?

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