Skip to content

Instantly share code, notes, and snippets.

@Pacodastre
Created December 11, 2014 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pacodastre/326946d0abb261fc8124 to your computer and use it in GitHub Desktop.
Save Pacodastre/326946d0abb261fc8124 to your computer and use it in GitHub Desktop.
commit 2d8206e81e3b6add9d42797bbb6ed1f894090a77
Author: Francois Ribemont <francois.ribemont@openapp.ie>
Date: Mon Dec 8 13:18:19 2014 +0000
Fixed the output string for one of the classes
diff --git a/django_auth_policy/password_strength.py b/django_auth_policy/password_strength.py
index baf9c79..8b5f1c2 100644
--- a/django_auth_policy/password_strength.py
+++ b/django_auth_policy/password_strength.py
@@ -165,7 +165,7 @@ class PasswordUserAttrs(PasswordStrengthPolicy):
@property
def policy_text(self):
- return self.text
+ return self.text.format()
class PasswordDisallowedTerms(PasswordStrengthPolicy):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment