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
e4ed0b63
Commit
e4ed0b63
authored
Nov 08, 2016
by
bryhoyt
Committed by
GitHub
Nov 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow ModelViews to be used in inline_models, by allowing pk in ModelView.scaffold_form
parent
178f504b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
view.py
flask_admin/contrib/peewee/view.py
+5
-0
No files found.
flask_admin/contrib/peewee/view.py
View file @
e4ed0b63
...
...
@@ -259,6 +259,11 @@ class ModelView(BaseModelView):
only
=
self
.
form_columns
,
exclude
=
self
.
form_excluded_columns
,
field_args
=
self
.
form_args
,
# Allow child to specify pk, so inline_models
# can be ModelViews. But don't auto-generate
# pk field if form_columns is empty -- allow
# default behaviour in that case.
allow_pk
=
bool
(
self
.
form_columns
),
extra_fields
=
self
.
form_extra_fields
)
if
self
.
inline_models
:
...
...
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