mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-18 14:08:04 +00:00
It is ensure by the URLconf that the email_id is there
This commit is contained in:
@@ -174,10 +174,6 @@ class AssignPhotoEmailView(SuccessMessageMixin, TemplateView):
|
||||
@method_decorator(login_required, name='dispatch')
|
||||
class ImportPhotoView(SuccessMessageMixin, View):
|
||||
def post(self, *args, **kwargs):
|
||||
if not 'email_id' in kwargs:
|
||||
messages.error(self.request, _('Address not given'))
|
||||
return HttpResponseRedirect(reverse_lazy('profile'))
|
||||
|
||||
try:
|
||||
email = ConfirmedEmail.objects.get(id=kwargs['email_id'], user=self.request.user)
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user