Skip to content

Commit

Permalink
Merge pull request #353 from jcomo/master
Browse files Browse the repository at this point in the history
Clarify table name override attribute
  • Loading branch information
immunda committed Nov 24, 2015
2 parents cfe529a + 6343739 commit 7f1bcae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/models.rst
Expand Up @@ -18,7 +18,8 @@ Things to keep in mind:
- Some parts that are required in SQLAlchemy are optional in
Flask-SQLAlchemy. For instance the table name is automatically set
for you unless overridden. It's derived from the class name converted
to lowercase and with “CamelCase” converted to “camel_case”.
to lowercase and with “CamelCase” converted to “camel_case”. To override
the table name, set the `__tablename__` class attribute.

Simple Example
--------------
Expand Down

0 comments on commit 7f1bcae

Please sign in to comment.