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
14f7f903
Commit
14f7f903
authored
Oct 02, 2012
by
Sean Lynch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sqlamodel.get_one() when using modified get_query()
parent
d47b97c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
.gitignore
.gitignore
+1
-0
view.py
flask_admin/contrib/sqlamodel/view.py
+1
-1
No files found.
.gitignore
View file @
14f7f903
...
@@ -12,3 +12,4 @@ dist/*
...
@@ -12,3 +12,4 @@ dist/*
make.bat
make.bat
venv
venv
*.sqlite
*.sqlite
*.sublime-*
flask_admin/contrib/sqlamodel/view.py
View file @
14f7f903
...
@@ -570,7 +570,7 @@ class ModelView(BaseModelView):
...
@@ -570,7 +570,7 @@ class ModelView(BaseModelView):
:param id:
:param id:
Model id
Model id
"""
"""
return
self
.
get_query
(
)
.
get
(
id
)
return
self
.
session
.
query
(
self
.
model
)
.
get
(
id
)
# Model handlers
# Model handlers
def
create_model
(
self
,
form
):
def
create_model
(
self
,
form
):
...
...
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