Skip to content

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

@waliddamou

Description

@waliddamou

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions