mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-04-11 10:40:59 +00:00
changed some form label names
This commit is contained in:
parent
5ad41df92c
commit
df1a7f68dd
1 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ def avatar_img(avatar, size):
|
|||
|
||||
class UploadAvatarForm(forms.Form):
|
||||
|
||||
avatar = forms.ImageField(label=_(u"avatar"))
|
||||
avatar = forms.ImageField(label=_(u"Avatar"))
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.user = kwargs.pop('user')
|
||||
|
|
@ -53,7 +53,7 @@ class PrimaryAvatarForm(forms.Form):
|
|||
size = kwargs.pop('size', AVATAR_DEFAULT_SIZE)
|
||||
avatars = kwargs.pop('avatars')
|
||||
super(PrimaryAvatarForm, self).__init__(*args, **kwargs)
|
||||
self.fields['choice'] = forms.ChoiceField(label=_("Choices"),
|
||||
self.fields['choice'] = forms.ChoiceField(label=_("Available avatars:"),
|
||||
choices=[(c.id, avatar_img(c, size)) for c in avatars],
|
||||
widget=widgets.RadioSelect)
|
||||
|
||||
|
|
@ -64,6 +64,6 @@ class DeleteAvatarForm(forms.Form):
|
|||
size = kwargs.pop('size', AVATAR_DEFAULT_SIZE)
|
||||
avatars = kwargs.pop('avatars')
|
||||
super(DeleteAvatarForm, self).__init__(*args, **kwargs)
|
||||
self.fields['choices'] = forms.MultipleChoiceField(label=_("Choices"),
|
||||
self.fields['choices'] = forms.MultipleChoiceField(label=_("Available avatars:"),
|
||||
choices=[(c.id, avatar_img(c, size)) for c in avatars],
|
||||
widget=widgets.CheckboxSelectMultiple)
|
||||
|
|
|
|||
Loading…
Reference in a new issue