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

AttributeError when SQLAlchemyDatastore.exclude_pks=False #36

Open
tooxie opened this issue Mar 31, 2012 · 0 comments
Open

AttributeError when SQLAlchemyDatastore.exclude_pks=False #36

tooxie opened this issue Mar 31, 2012 · 0 comments

Comments

@tooxie
Copy link

tooxie commented Mar 31, 2012

When the exclude_pks parameter is set to False in datastore.sqlalchemy.SQLAlchemyDatastore the following exception is thrown:

  File "(...)python2.7/site-packages/flask_admin/datastore/sqlalchemy.py", line 250, in convert
    not callable(default_value.arg):
AttributeError: 'Sequence' object has no attribute 'arg'

The Column is defined as follows:

pk = Column(Integer, Sequence('hash_pk'), primary_key=True)
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

1 participant