Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
campaign
Commits
9ce150cc
Commit
9ce150cc
authored
May 16, 2016
by
okhin
Browse files
Fixing the lanmbda for LANGUAGES in models
parent
a5c2c7fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
picampaign/campaign/models.py
View file @
9ce150cc
...
@@ -6,7 +6,7 @@ from picampaign.organization.models import Organization
...
@@ -6,7 +6,7 @@ from picampaign.organization.models import Organization
from
picampaign.contact.models
import
Contact
from
picampaign.contact.models
import
Contact
LANGUAGES
=
map
(
lambda
k
,
v
:
(
k
,
_
(
v
)),
settings
.
LANGUAGES
)
LANGUAGES
=
map
(
lambda
k
:
(
k
[
0
]
,
_
(
k
[
1
]
)),
settings
.
LANGUAGES
)
class
Campaign
(
models
.
Model
):
class
Campaign
(
models
.
Model
):
...
...
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