Commit d8397e09 authored by Claude Paroz's avatar Claude Paroz

Mark a string as translatable in EditMemberRoleForm (#630507)

Initial patch from Andika Triwidada
parent 2b3bfb69
from django import forms
from django.utils.translation import ugettext as _
from teams.models import Team, ROLE_CHOICES
class EditTeamDetailsForm(forms.ModelForm):
......@@ -17,7 +18,7 @@ class EditMemberRoleForm(forms.Form):
def __init__(self, roles, *args, **kwargs):
super(EditMemberRoleForm, self).__init__(*args, **kwargs)
choices = list(ROLE_CHOICES[:-1]) # exclude last element: coordinator
choices.append(('remove','Remove From Team'))
choices.append(('remove', _("Remove From Team")))
for role in roles:
self.fields[str(] = forms.ChoiceField(
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 to comment