Fixing model name

This commit is contained in:
Mohamed ElKalioby
2019-03-19 12:58:58 +03:00
parent 9aafce4e00
commit 82fd6f28bd
2 changed files with 5 additions and 2 deletions

View File

@@ -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'