Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
3157f78f
Commit
3157f78f
authored
Oct 04, 2012
by
Priit Laes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve inline formatting for docs
parent
f15b4388
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
view.py
flask_admin/contrib/sqlamodel/view.py
+7
-7
No files found.
flask_admin/contrib/sqlamodel/view.py
View file @
3157f78f
...
...
@@ -138,28 +138,28 @@ class ModelView(BaseModelView):
giving SQLAlchemy chance to manually cleanup any dependencies (many-to-many
relationships, etc).
If set to
True, will run DELETE statement which is somewhat faster, but
might leave corrupted data if you forget to configure DELETE CASCAD
E
for your model.
If set to
`True`, will run `DELETE` statement which is somewhat faster,
but might leave corrupted data if you forget to configure `DELET
E
CASCADE`
for your model.
"""
inline_models
=
None
"""
Inline related-model editing for models with parent to child relation.
Accept
enumerable with one of th
e values:
Accept
s enumerable with one of the following possibl
e values:
1. Child model class
1. Child model class
::
class MyModelView(ModelView):
inline_models = (Post,)
2. Child model class and additional options
2. Child model class and additional options
::
class MyModelView(ModelView):
inline_models = [(Post, dict(form_columns=['title']))]
3. Django-like ``InlineFormAdmin`` class instance
3. Django-like ``InlineFormAdmin`` class instance
::
class MyInlineForm(InlineFormAdmin):
forum_columns = ('title', 'date')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment