title: Django password reset with MongoDB - DatabaseError with no exception message
body: <p>I've connected my Django app with MongoDB, register/login/logout are all working fine. But when I use the Django default password reset email it throws a database error.</p>
  <p>What I've tired:</p>
  <ul>
  <li>sqlite3 - register/login/logout (<strong>Working</strong>)</li>
  <li>MongoDB - register/login/logout (<strong>Working</strong>)</li>
  <li>sqlite3 - password reset email (<strong>Working</strong>)</li>
  <li>MongoDB - password reset email (<strong>NOT Working</strong>)</li>
  </ul>
  <p>I was able to land on the Django password reset page, but when I hit confirm it return the error on the browser</p>
  <pre><code>DatabaseError at /pw_reset/
  No exception message supplied
  Request Method: POST
  Request URL:    http://localhost:8000/pw_reset/
  Django Version: 3.2.6
  Exception Type: DatabaseError
  Exception Location:  
  C:...venv\lib\site-packages\djongo\cursor.py, line 59, in execute
  
  The above exception ( Keyword: None Sub SQL: None FAILED SQL: ('SELECT &quot;accounts_user&quot;.&quot;id&quot;, &quot;accounts_user&quot;.&quot;password&quot;, &quot;accounts_user&quot;.&quot;last_login&quot;, &quot;accounts_user&quot;.&quot;is_superuser&quot;, &quot;accounts_user&quot;.&quot;username&quot;, &quot;accounts_user&quot;.&quot;first_name&quot;, &quot;accounts_user&quot;.&quot;last_name&quot;, &quot;accounts_user&quot;.&quot;email&quot;, &quot;accounts_user&quot;.&quot;is_staff&quot;, &quot;accounts_user&quot;.&quot;is_active&quot;, &quot;accounts_user&quot;.&quot;date_joined&quot; FROM &quot;accounts_user&quot; WHERE (&quot;accounts_user&quot;.&quot;email&quot; iLIKE %(0)s AND &quot;accounts_user&quot;.&quot;is_active&quot;)',) Params: (('test@test.com',),) Version: 1.3.6) was the direct cause of the following exception:
  </code></pre>
  <p>Console log:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:...\lib\site-packages\django\template\base.py&quot;, line 850, in _resolve_lookup   
      (bit, current))  # missing attribute
  django.template.base.VariableDoesNotExist: Failed lookup for key [name] in &lt;URLResolver &lt;URLPattern list&gt; (admin:admin) 'admin/'&gt;
  </code></pre>
  <p>URL Path:</p>
  <blockquote>
  <p>path('pw_reset/', auth_views.PasswordResetView.as_view(), name=&quot;reset_password&quot;),</p>
  </blockquote>
  <p>The Views I defined myself (register/login/logout) are all working fine. But the built-in one PasswordRestView is not. I've tried dropping the DB, reinstall djongo, I run out of ideas... Please help!</p>