Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
5e5f1bf8
Commit
5e5f1bf8
authored
Nov 14, 2014
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
37db5a13
d4a0460d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
weblate/lang/models.py
weblate/lang/models.py
+3
-1
No files found.
weblate/lang/models.py
View file @
5e5f1bf8
...
...
@@ -19,6 +19,7 @@
#
from
django.db
import
models
from
django.db
import
transaction
from
django.utils.translation
import
ugettext
as
_
from
django.utils.safestring
import
mark_safe
from
django.dispatch
import
receiver
...
...
@@ -295,7 +296,8 @@ def setup_lang(sender, app, **kwargs):
Hook for creating basic set of languages on database migration.
'''
if
app
==
'lang'
or
getattr
(
app
,
'__name__'
,
''
)
==
'weblate.lang.models'
:
Language
.
objects
.
setup
(
False
)
with
transaction
.
atomic
():
Language
.
objects
.
setup
(
False
)
if
'south'
in
settings
.
INSTALLED_APPS
:
from
south.signals
import
post_migrate
...
...
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