Sever Băneșiu  committed a80e641

By default the migration is off.

  • Participants
  • Parent commits 3fbd088
  • Branches default

Comments (0)

Files changed (2)

File django_bcrypt/

 def migrate_to_bcrypt():
     """Returns ``True`` if password migration is activated. """
-    return getattr(settings, "BCRYPT_MIGRATE", True)
+    return getattr(settings, "BCRYPT_MIGRATE", False)
 def bcrypt_check_password(self, raw_password):

File django_bcrypt/

             self.assertEqual(migrate_to_bcrypt(), False)
         with settings(BCRYPT_MIGRATE=True):
             self.assertEqual(migrate_to_bcrypt(), True)
+        with settings(BCRYPT_MIGRATE=NotImplemented):
+            self.assertEqual(migrate_to_bcrypt(), False)
 def settings(**kwargs):