Add name to objects using realm+name
This commit is contained in:
parent
420393a437
commit
2054bd16ab
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,9 @@ class OTPSeed(models.Model):
|
|||
class Meta:
|
||||
unique_together = (('name', 'realm'),)
|
||||
|
||||
def __str__(self):
|
||||
return "'{}'@{}".format(self.name, self.realm)
|
||||
|
||||
|
||||
# V1
|
||||
# class OTPSeed(models.Model):
|
||||
|
|
Loading…
Reference in a new issue