#31718: changepassword command should pass update_fields to user.save()
-------------------------------------+-------------------------------------
     Reporter:  Marcel Tschopp       |                    Owner:  Marcel
                                     |  Tschopp
         Type:  Uncategorized        |                   Status:  assigned
    Component:  Core (Management     |                  Version:  3.0
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 Not sure this is desirable as it breaks any custom `User` model with an
 `updated_at = models.DateTimeField(auto_now=True)` field.

 If `updated_fields` is used this potential field won't be updated on a
 password change through the management command anymore.

 I'm inclined to 'wontfix' this ticket since `update_fields` would bring
 little benefit with a slightly backward incompatible behaviour in this
 case.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31718#comment:2>
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/073.179031d74775066859dbf49b09a8daff%40djangoproject.com.

Reply via email to