Override abstract and explicitly set related_name for MumbleUser

This commit is contained in:
Peter Pfeufer 2022-06-06 10:56:42 +00:00 committed by Ariel Rin
parent 3b539c8577
commit 4c416b03b1

View File

@ -62,6 +62,12 @@ class MumbleManager(models.Manager):
class MumbleUser(AbstractServiceModel): class MumbleUser(AbstractServiceModel):
user = models.OneToOneField(
'auth.User',
primary_key=True,
on_delete=models.CASCADE,
related_name='mumble'
)
username = models.CharField(max_length=254, unique=True) username = models.CharField(max_length=254, unique=True)
pwhash = models.CharField(max_length=90) pwhash = models.CharField(max_length=90)
hashfn = models.CharField(max_length=20, default='sha1') hashfn = models.CharField(max_length=20, default='sha1')