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
2a694c35
Commit
2a694c35
authored
Jul 05, 2013
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed py3 compatibility
parent
935a9e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
base.py
flask_admin/model/base.py
+2
-1
No files found.
flask_admin/model/base.py
View file @
2a694c35
...
...
@@ -12,6 +12,7 @@ from flask.ext.admin.actions import ActionsMixin
from
flask.ext.admin.helpers
import
get_form_data
,
validate_form_on_submit
from
flask.ext.admin.tools
import
rec_getattr
from
flask.ext.admin._backwards
import
ObsoleteAttr
from
flask.ext.admin._compat
import
as_unicode
class
BaseModelView
(
BaseView
,
ActionsMixin
):
...
...
@@ -875,7 +876,7 @@ class BaseModelView(BaseView, ActionsMixin):
"""
Return flattened filter dictionary which can be JSON-serialized.
"""
return
dict
((
unicode
(
k
),
v
)
for
k
,
v
in
self
.
_filter_dict
.
iteritems
())
return
dict
((
as_
unicode
(
k
),
v
)
for
k
,
v
in
self
.
_filter_dict
.
iteritems
())
@
contextfunction
def
get_list_value
(
self
,
context
,
model
,
name
):
...
...
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