Skip to content

Commit a4c64ac

Browse files
Use public autoincrement_column (#634)
1 parent ee867e8 commit a4c64ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aiohttp_admin/backends/sqlalchemy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, db: AsyncEngine, model_or_table: Union[sa.Table, Type[Declara
5252
self.fields[c.name] = {"type": field, "props": props}
5353
if c.computed is None:
5454
# TODO: Allow custom props (e.g. disabled, multiline, rows etc.)
55-
show = c is not table._autoincrement_column
55+
show = c is not table.autoincrement_column
5656
self.inputs[c.name] = {"type": inp, "props": props, "show_create": show}
5757

5858
self._db = db

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ def read_version():
4242
packages=find_packages(),
4343
install_requires=("aiohttp>=3.8.2", "aiohttp_security", "aiohttp_session",
4444
"cryptography", "pydantic"),
45-
extras_require={"sa": ["sqlalchemy>=2,<3"]},
45+
extras_require={"sa": ["sqlalchemy>=2.0.4,<3"]},
4646
include_package_data=True)

0 commit comments

Comments
 (0)