mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-12 22:10:16 +02:00
Override abstract and explicitly set related_name
for MumbleUser
This commit is contained in:
parent
3b539c8577
commit
4c416b03b1
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user