File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ Models
27
27
Optionally declares the bind to use. `None ` refers to the default
28
28
bind. For more information see :ref: `binds `.
29
29
30
+ .. attribute :: __tablename__
31
+
32
+ The name of the table in the database. This is required by SQLAlchemy;
33
+ however, Flask-SQLAlchemy will set it automatically if a model has a
34
+ primary key defined. If the ``__table__ `` or ``__tablename__ `` is set
35
+ explicitly, that will be used instead.
36
+
30
37
.. autoclass :: BaseQuery
31
38
:members: get, get_or_404, paginate, first_or_404
32
39
54
61
Return the first result of this query or `None ` if the result
55
62
doesn’t contain any rows. This results in an execution of the
56
63
underlying query.
57
-
64
+
58
65
Sessions
59
66
````````
60
67
You can’t perform that action at this time.
0 commit comments