Changes between Version 1 and Version 2 of Ticket #36901, comment 6
- Timestamp:
- Mar 30, 2026, 9:04:06 AM (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36901, comment 6
v1 v2 6 6 7 7 NB : 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. 9 9 - 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(). 10 10 - I think adding more tests is not needed.