flask-admin-old icon indicating copy to clipboard operation
flask-admin-old copied to clipboard

AttributeError when SQLAlchemyDatastore.exclude_pks=False

Open tooxie opened this issue 12 years ago • 0 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)

tooxie avatar Mar 31 '12 15:03 tooxie