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
5a50d9d9
Commit
5a50d9d9
authored
Mar 12, 2015
by
Alex Kerney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Helps if I test against the correct flask-babel, aka flask-babelex
parent
50a0251b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
localization.rst
doc/localization.rst
+1
-1
app.py
examples/babel/app.py
+1
-1
babel.py
flask_admin/babel.py
+1
-1
test_basic.py
flask_admin/tests/sqla/test_basic.py
+1
-1
No files found.
doc/localization.rst
View file @
5a50d9d9
...
@@ -21,7 +21,7 @@ How to enable localization
...
@@ -21,7 +21,7 @@ How to enable localization
2. Initialize Flask-BabelEx by creating instance of `Babel` class::
2. Initialize Flask-BabelEx by creating instance of `Babel` class::
from flask import app
from flask import app
from flask
_
babel import Babel
from flask
.ext.
babel import Babel
app = Flask(__name__)
app = Flask(__name__)
babel = Babel(app)
babel = Babel(app)
...
...
examples/babel/app.py
View file @
5a50d9d9
...
@@ -2,7 +2,7 @@ from flask import Flask, request, session
...
@@ -2,7 +2,7 @@ from flask import Flask, request, session
from
flask_sqlalchemy
import
SQLAlchemy
from
flask_sqlalchemy
import
SQLAlchemy
import
flask_admin
as
admin
import
flask_admin
as
admin
from
flask
_
babel
import
Babel
from
flask
.ext.
babel
import
Babel
from
flask_admin.contrib
import
sqla
from
flask_admin.contrib
import
sqla
...
...
flask_admin/babel.py
View file @
5a50d9d9
try
:
try
:
from
.helpers
import
get_current_view
from
.helpers
import
get_current_view
from
flask
_
babel
import
Domain
from
flask
.ext.
babel
import
Domain
from
flask_admin
import
translations
from
flask_admin
import
translations
...
...
flask_admin/tests/sqla/test_basic.py
View file @
5a50d9d9
...
@@ -6,7 +6,7 @@ from flask_admin import form
...
@@ -6,7 +6,7 @@ from flask_admin import form
from
flask_admin._compat
import
as_unicode
from
flask_admin._compat
import
as_unicode
from
flask_admin._compat
import
iteritems
from
flask_admin._compat
import
iteritems
from
flask_admin.contrib.sqla
import
ModelView
,
filters
from
flask_admin.contrib.sqla
import
ModelView
,
filters
from
flask
_
babel
import
Babel
from
flask
.ext.
babel
import
Babel
from
.
import
setup
from
.
import
setup
...
...
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