diff --git a/opentech/apply/funds/blocks.py b/opentech/apply/funds/blocks.py index 2fe74b168f1f930f570cf1361462e9220c356904..29ba839218d2fffbb0c61ce66e67b5066be3d5e9 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 dad852905dca7f74d2a48629156f5050b17d6762..6ad1534218120026b627d9df57ef0e5b293fc4ea 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