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
0fce18e3
Commit
0fce18e3
authored
Aug 25, 2016
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wtforms babel domain
parent
216a66b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
babel.py
flask_admin/babel.py
+4
-2
test_basic.py
flask_admin/tests/peeweemodel/test_basic.py
+1
-0
No files found.
flask_admin/babel.py
View file @
0fce18e3
...
...
@@ -52,10 +52,12 @@ else:
class
Translations
(
object
):
''' Fixes WTForms translation support and uses wtforms translations '''
def
gettext
(
self
,
string
):
return
wtforms_domain
.
gettext
(
string
)
t
=
wtforms_domain
.
get_translations
()
return
t
.
ugettext
(
string
)
def
ngettext
(
self
,
singular
,
plural
,
n
):
return
wtforms_domain
.
ngettext
(
singular
,
plural
,
n
)
t
=
wtforms_domain
.
get_translations
()
return
t
.
ungettext
(
singular
,
plural
,
n
)
# lazy imports
...
...
flask_admin/tests/peeweemodel/test_basic.py
View file @
0fce18e3
...
...
@@ -934,6 +934,7 @@ def test_form_args():
# ensure shared field_args don't create duplicate validators
create_form
=
view
.
create_form
()
eq_
(
len
(
create_form
.
test
.
validators
),
2
)
edit_form
=
view
.
edit_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