diff --git a/mfa/models.py b/mfa/models.py index 11d876c..bd01882 100644 --- a/mfa/models.py +++ b/mfa/models.py @@ -17,6 +17,9 @@ class User_Keys(models.Model): if self.key_type == "Trusted Device" and self.properties.get("signature","") == "": self.properties["signature"]= jwt.encode({"username": self.username, "key": self.properties["key"]}, settings.SECRET_KEY) super(User_Keys, self).save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields) - + def __unicode__(self): + return "%s -- %s"%(self.username,self.key_type) + def __str__(self): + return self.__unicode__() class Meta: app_label='mfa' \ No newline at end of file diff --git a/setup.py b/setup.py index 404cec8..a54f9a9 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import find_packages, setup setup( name='django-mfa2', - version='1.1.2', + version='1.1.5', description='Allows user to add 2FA to their accounts', long_description=open("README.md").read(), long_description_content_type="text/markdown",