title: Django Allauth TypeError at /accounts/confirm-email/
body: <p>I'm using <strong>django-allauth</strong> for my django authentication and
  while confirming the email i get</p>
  <p><code>TypeError at /accounts/confirmemail/MQ:1mk57U:HtWDA8B5NClWhK2L6nDxJgwlNRGItW_4FyhDqcbcfow/</code> and it's complaining about <code>argument of type 'bool' is not iterable</code></p>
  <p>as I searched answers were in the cause of using <code>django-rest-allauth</code> and here I'm not using any rest api and facing this issue.</p>
  <p>some configs on my <code>settings.py</code> file</p>
  <pre><code># all auth config
  AUTHENTICATION_BACKENDS = [
      # Needed to login by username in Django admin, regardless of `allauth`
      &quot;django.contrib.auth.backends.ModelBackend&quot;,
      # `allauth` specific authentication methods, such as login by e-mail
      &quot;allauth.account.auth_backends.AuthenticationBackend&quot;,
  ]
  SITE_ID = 1
  ACCOUNT_EMAIL_REQUIRED = True
  ACCOUNT_EMAIL_VERIFICATION = &quot;mandatory&quot;
  ACCOUNT_AUTHENTICATION_METHOD = &quot;username_email&quot;
  ACCOUNT_LOGIN_ON_PASSWORD_RESET = True
  </code></pre>
  <p><strong>Update</strong>: The full error tracback looks</p>
  <pre><code>Environment:
  
  
  Request Method: GET
  Request URL: http://127.0.0.1:8000/accounts/confirm-email/MQ:1mk57U:HtWDA8B5NClWhK2L6nDxJgwlNRGItW_4FyhDqcbcfow/
  
  Django Version: 3.2.9
  Python Version: 3.9.7
  Installed Applications:
  ['django.contrib.admin',
   'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.sessions',
   'django.contrib.messages',
   'django.contrib.staticfiles',
   'django.contrib.sites',
   'allauth',
   'allauth.account',
   'allauth.socialaccount',
   'allauth.socialaccount.providers.google',
   'allauth.socialaccount.providers.facebook',
   'allauth.socialaccount.providers.twitter',
   'allauth.socialaccount.providers.telegram',
   'allauth.socialaccount.providers.instagram',
   'django_extensions',
   'avatar',
   'django_cleanup.apps.CleanupConfig',
   'user']
  Installed Middleware:
  ['django.middleware.security.SecurityMiddleware',
   'django.contrib.sessions.middleware.SessionMiddleware',
   'django.middleware.common.CommonMiddleware',
   'django.middleware.csrf.CsrfViewMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'django.contrib.messages.middleware.MessageMiddleware',
   'django.middleware.clickjacking.XFrameOptionsMiddleware']
  
  
  
  Traceback (most recent call last):
    File &quot;/home/ali/.local/lib/python3.9/site-packages/django/shortcuts.py&quot;, line 130, in resolve_url
      return reverse(to, args=args, kwargs=kwargs)
    File &quot;/home/ali/.local/lib/python3.9/site-packages/django/urls/base.py&quot;, line 86, in reverse
      return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
    File &quot;/home/ali/.local/lib/python3.9/site-packages/django/urls/resolvers.py&quot;, line 694, in _reverse_with_prefix
      raise NoReverseMatch(msg)
  
  During handling of the above exception (Reverse for 'True' not found. 'True' is not a valid view function or pattern name.), another exception occurred:
    File &quot;/home/ali/.local/lib/python3.9/site-packages/django/core/handlers/exception.py&quot;, line 47, in inner
      response = get_response(request)
    File &quot;/home/ali/.local/lib/python3.9/site-packages/django/core/handlers/base.py&quot;, line 181, in _get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File &quot;/home/ali/.local/lib/python3.9/site-packages/django/views/generic/base.py&quot;, line 70, in view
      return self.dispatch(request, *args, **kwargs)
    File &quot;/home/ali/.local/lib/python3.9/site-packages/django/views/generic/base.py&quot;, line 98, in dispatch
      return handler(request, *args, **kwargs)
    File &quot;/home/ali/.local/lib/python3.9/site-packages/allauth/account/views.py&quot;, line 295, in get
      return self.post(*args, **kwargs)
    File &quot;/home/ali/.local/lib/python3.9/site-packages/allauth/account/views.py&quot;, line 334, in post
      return redirect(redirect_url)
    File &quot;/home/ali/.local/lib/python3.9/site-packages/django/shortcuts.py&quot;, line 41, in redirect
      return redirect_class(resolve_url(to, *args, **kwargs))
    File &quot;/home/ali/.local/lib/python3.9/site-packages/django/shortcuts.py&quot;, line 136, in resolve_url
      if '/' not in to and '.' not in to:
  
  Exception Type: TypeError at /accounts/confirm-email/MQ:1mk57U:HtWDA8B5NClWhK2L6nDxJgwlNRGItW_4FyhDqcbcfow/
  Exception Value: argument of type 'bool' is not iterable
  </code></pre>