#34002: PasswordResetView cannot find is_active property of User model extending
AbstractBaseUser
-------------------------------------+-------------------------------------
               Reporter:  Brylie     |          Owner:  nobody
  Christopher Oxley                  |
                   Type:             |         Status:  new
  Uncategorized                      |
              Component:             |        Version:  4.1
  contrib.auth                       |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 I have a user model that extends AbstractBaseUser. When trying to reset a
 user password via the django.contrib.auth.views.PasswordResetView, I get
 the following error:

 FieldError at /accounts/password_reset/
 Cannot resolve keyword 'is_active' into field.

 While the AbstractBaseUser class does have an is_active property set to
 True, it seems that the PasswordResetView is somehow excluding this
 property.

 The issue is resolved by adding an is_active BooleanField to my User
 model, but seems like a bug in PasswordResetView.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34002>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070183281bf1da-c8324920-6628-4059-a0c2-bd96792ca3ab-000000%40eu-central-1.amazonses.com.

Reply via email to