From 379ec2781bc003ff6df40f32be1a0c789bb9b2e5 Mon Sep 17 00:00:00 2001 From: Dan Braghis <dan.braghis@torchbox.com> Date: Thu, 25 Jan 2018 15:32:46 +0000 Subject: [PATCH] Lint --- opentech/apply/funds/blocks.py | 1 + opentech/apply/users/views.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/opentech/apply/funds/blocks.py b/opentech/apply/funds/blocks.py index 2fe74b168..29ba83921 100644 --- a/opentech/apply/funds/blocks.py +++ b/opentech/apply/funds/blocks.py @@ -164,4 +164,5 @@ class FullNameBlock(MustIncludeFieldBlock): class Meta: icon = 'mail' + REQUIRED_BLOCK_NAMES = [block.name for block in MustIncludeFieldBlock.__subclasses__()] diff --git a/opentech/apply/users/views.py b/opentech/apply/users/views.py index dad852905..6ad153421 100644 --- a/opentech/apply/users/views.py +++ b/opentech/apply/users/views.py @@ -3,7 +3,6 @@ from django.contrib.auth import get_user_model, login, update_session_auth_hash from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import AdminPasswordChangeForm from django.contrib.auth.tokens import PasswordResetTokenGenerator -from django.core.exceptions import PermissionDenied from django.shortcuts import redirect, render from django.template.response import TemplateResponse from django.urls import reverse_lazy @@ -47,7 +46,6 @@ class ActivationView(TemplateView): return render(request, 'users/activation/invalid.html') - def valid(self, user, token): """ Verify that the activation token is valid and within the @@ -57,7 +55,6 @@ class ActivationView(TemplateView): token_generator = PasswordResetTokenGenerator() return user is not None and token_generator.check_token(user, token) - def get_user(self, uidb64): """ Given the verified uid, look up and return the -- GitLab