Changes between Version 1 and Version 2 of Ticket #36901, comment 6


Ignore:
Timestamp:
Mar 30, 2026, 9:04:06 AM (2 weeks ago)
Author:
Afenomamy

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36901, comment 6

    v1 v2  
    66
    77NB :
    8     - For **Attribute Safety**: getattr(user, 'is_active', True) will be used to  ensure compatibility with custom user models that do not define an is_active field. This will resolve the reported AttributeError.
     8    - For **Attribute safety**: getattr(user, 'is_active', True) will be used to  ensure compatibility with custom user models that do not define an is_active field. This will resolve the reported AttributeError.
    99    - For **Performance:**   make_password  will be called directly for the dummy hashing. This avoids the overhead of instantiating a UserModel instance simply to call set_password().
    1010    - I think adding more tests is not needed.
Back to Top