Skip to content

Commit

Permalink
Refactor string concatenation
Browse files Browse the repository at this point in the history
Apply implicit string concatenation syntax instead of explicit
concatenation in the 'AUTH_PASSWORD_VALIDATORS' block.

Related to #16
  • Loading branch information
Martolivna committed Jul 28, 2023
1 parent 6c3d163 commit bf2d041
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions mysite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,22 @@
}


VALIDATIONS_PATH = 'django.contrib.auth.password_validation.'

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': VALIDATIONS_PATH + 'UserAttributeSimilarityValidator',
'NAME': 'django.contrib.auth.password_validation.'
'UserAttributeSimilarityValidator',
},
{
'NAME': VALIDATIONS_PATH + 'MinimumLengthValidator',
'NAME': 'django.contrib.auth.password_validation.'
'MinimumLengthValidator',
},
{
'NAME': VALIDATIONS_PATH + 'CommonPasswordValidator',
'NAME': 'django.contrib.auth.password_validation.'
'CommonPasswordValidator',
},
{
'NAME': VALIDATIONS_PATH + 'NumericPasswordValidator',
'NAME': 'django.contrib.auth.password_validation.'
'NumericPasswordValidator',
},
]

Expand Down

0 comments on commit bf2d041

Please sign in to comment.