mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
Fixed now
This commit is contained in:
parent
04a5a271de
commit
1aaaac1ce0
1 changed files with 0 additions and 1 deletions
|
|
@ -24,7 +24,6 @@ class UploadAvatarForm(forms.Form):
|
|||
|
||||
def clean_avatar(self):
|
||||
data = self.cleaned_data['avatar']
|
||||
# FIXME use AVATAR_MAX_AVATARS_PER_USER
|
||||
count = Avatar.objects.filter(user=self.user).count()
|
||||
if AVATAR_MAX_AVATARS_PER_USER > 1 and \
|
||||
count >= AVATAR_MAX_AVATARS_PER_USER:
|
||||
|
|
|
|||
Loading…
Reference in a new issue