Commit 934b5a2c by Őry Máté

dashboard: fix submit buttons' text

parent a02a149f
...@@ -1098,8 +1098,7 @@ class MyProfileForm(forms.ModelForm): ...@@ -1098,8 +1098,7 @@ class MyProfileForm(forms.ModelForm):
@property @property
def helper(self): def helper(self):
helper = FormHelper() helper = FormHelper()
helper.layout = Layout('preferred_language', ) helper.add_input(Submit("submit", _("Save")))
helper.add_input(Submit("submit", _("Change language")))
return helper return helper
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
...@@ -1116,7 +1115,7 @@ class UnsubscribeForm(forms.ModelForm): ...@@ -1116,7 +1115,7 @@ class UnsubscribeForm(forms.ModelForm):
@property @property
def helper(self): def helper(self):
helper = FormHelper() helper = FormHelper()
helper.add_input(Submit("submit", _("Change language"))) helper.add_input(Submit("submit", _("Save")))
return helper return helper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment