mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
Allow translation for the label of the avatar ImageField in the UploadAvatarForm
This commit is contained in:
parent
bc0a34612c
commit
005d719b94
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ def avatar_img(avatar, size):
|
|||
|
||||
class UploadAvatarForm(forms.Form):
|
||||
|
||||
avatar = forms.ImageField()
|
||||
avatar = forms.ImageField(label=_(u"avatar"))
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.user = kwargs.pop('user')
|
||||
|
|
|
|||
Loading…
Reference in a new issue