Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #233 from blossomica/bug1141298-Deprecate-UserFind…
Browse files Browse the repository at this point in the history
…Form

Fix bug 1141298 - Deprecate UserFindForm
  • Loading branch information
Peter Bengtsson committed Mar 12, 2015
2 parents 6c96475 + 9d7c699 commit 2643aa2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions airmozilla/manage/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,6 @@ class Meta:
model = Group


class UserFindForm(BaseForm):

email = forms.CharField(max_length=200)

def clean_email(self):
email = self.cleaned_data['email']
if not User.objects.filter(email__icontains=email):
raise forms.ValidationError('No users found')
return email


class EventRequestForm(BaseModelForm):
tags = forms.CharField(required=False)

Expand Down
2 changes: 0 additions & 2 deletions airmozilla/manage/views/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ def users(request):
User.objects.filter(_mozilla_email_filter).count()
),
}
form = forms.UserFindForm()
context = {
'form': form,
'users_stats': users_stats,
}
return render(request, 'manage/users.html', context)
Expand Down

0 comments on commit 2643aa2

Please sign in to comment.