We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 860933c commit c27b8dfCopy full SHA for c27b8df
3 files changed
docs/initialize.rst
@@ -132,6 +132,7 @@ tree management and finally call manually a rebuild of the tree once at the end:
132
.. testcode::
133
:hide:
134
135
+ # This is some more setup code.
136
from flask import Flask
137
138
class MyModelTree(db.Model, BaseNestedSets):
docs/tut_flask.rst
@@ -47,6 +47,7 @@ Add data to table with tree.
47
48
49
50
51
app.app_context().push()
52
53
sqlalchemy_mptt/mixins.py
@@ -55,6 +55,7 @@ def __repr__(self):
55
56
57
58
59
Base.metadata.create_all(engine)
60
node = Tree()
61
session.add(node)
0 commit comments