fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Recognizing language for a thank-you email properly
[wolnelektury.git]
/
apps
/
funding
/
forms.py
diff --git
a/apps/funding/forms.py
b/apps/funding/forms.py
index
165c64d
..
3bd7f1d
100644
(file)
--- a/
apps/funding/forms.py
+++ b/
apps/funding/forms.py
@@
-1,5
+1,5
@@
from django import forms
from django import forms
-from django.utils.translation import ugettext_lazy as _, ugettext as __
+from django.utils.translation import ugettext_lazy as _, ugettext as __
, get_language
from .models import Funding
from .widgets import PerksAmountWidget
from .models import Funding
from .widgets import PerksAmountWidget
@@
-36,6
+36,7
@@
class FundingForm(forms.Form):
name=self.cleaned_data['name'],
email=self.cleaned_data['email'],
amount=self.cleaned_data['amount'],
name=self.cleaned_data['name'],
email=self.cleaned_data['email'],
amount=self.cleaned_data['amount'],
+ language_code = get_language(),
)
funding.perks = funding.offer.get_perks(funding.amount)
return funding
)
funding.perks = funding.offer.get_perks(funding.amount)
return funding