wilsaj / flask-admin-old

Deprecated Flask-Admin 0.x branch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError when SQLAlchemyDatastore.exclude_pks=False

tooxie opened this issue · comments

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)