rm python2 compat code
This commit is contained in:
@@ -25,18 +25,15 @@ class User_Keys(models.Model):
|
|||||||
{"username": self.username, "key": self.properties["key"]},
|
{"username": self.username, "key": self.properties["key"]},
|
||||||
settings.SECRET_KEY,
|
settings.SECRET_KEY,
|
||||||
)
|
)
|
||||||
super(User_Keys, self).save(
|
super().save(
|
||||||
force_insert=force_insert,
|
force_insert=force_insert,
|
||||||
force_update=force_update,
|
force_update=force_update,
|
||||||
using=using,
|
using=using,
|
||||||
update_fields=update_fields,
|
update_fields=update_fields,
|
||||||
)
|
)
|
||||||
|
|
||||||
def __unicode__(self):
|
|
||||||
return "%s -- %s" % (self.username, self.key_type)
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.__unicode__()
|
return "%s -- %s" % (self.username, self.key_type)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label = "mfa"
|
app_label = "mfa"
|
||||||
|
|||||||
Reference in New Issue
Block a user