Skip to content

Commit 7f1bcae

Browse files
committed
Merge pull request pallets-eco#353 from jcomo/master
Clarify table name override attribute
2 parents cfe529a + 6343739 commit 7f1bcae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/models.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Things to keep in mind:
1818
- Some parts that are required in SQLAlchemy are optional in
1919
Flask-SQLAlchemy. For instance the table name is automatically set
2020
for you unless overridden. It's derived from the class name converted
21-
to lowercase and with “CamelCase” converted to “camel_case”.
21+
to lowercase and with “CamelCase” converted to “camel_case”. To override
22+
the table name, set the `__tablename__` class attribute.
2223

2324
Simple Example
2425
--------------

0 commit comments

Comments
 (0)