equal
deleted
inserted
replaced
127 if form.is_valid(): |
127 if form.is_valid(): |
128 form_id = form.cleaned_data.get('id') |
128 form_id = form.cleaned_data.get('id') |
129 |
129 |
130 if form_id: |
130 if form_id: |
131 # email provided, so attempt to look up user by email |
131 # email provided, so attempt to look up user by email |
132 user = models.user.logic.getFromFields(id=form_id) |
132 user = models.user.logic.getFromFields(email=form_id.email()) |
133 |
133 |
134 if user: |
134 if user: |
135 lookup_message = ugettext_lazy('User found by email.') |
135 lookup_message = ugettext_lazy('User found by email.') |
136 else: |
136 else: |
137 email_error = ugettext_lazy('User with that email not found.') |
137 email_error = ugettext_lazy('User with that email not found.') |