Skip to content

AttributeError when SQLAlchemyDatastore.exclude_pks=False #36

@tooxie

Description

@tooxie

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions