Add name to objects using realm+name

This commit is contained in:
Nico Schottelius 2018-11-17 10:14:37 +01:00
parent 420393a437
commit 2054bd16ab
1 changed files with 3 additions and 0 deletions

View File

@ -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):