Changes between Initial Version and Version 1 of Ticket #28163, comment 4


Ignore:
Timestamp:
Jul 23, 2017, 8:18:18 PM (7 years ago)
Author:
Yoni Lavi

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28163, comment 4

    initial v1  
    44{{{#!python
    55def basic_password_validator(class_name, **kwargs):
    6     MODULE_PATH = 'django.contrib.auth.password_validation.'
    7     validator = {'NAME': '.'.join(MODULE_PATH, class_name)}
     6    MODULE_PATH = 'django.contrib.auth.password_validation'
     7    validator = {'NAME': '.'.join([MODULE_PATH, class_name])}
    88    validator.update(kwargs)
    99    return validator
Back to Top