mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-21 10:12:28 +02:00
- update string format method - remove redundant default arguments from function calls - remove unused imports - remove unicode identifier from strings, it's default in py3 (see: https://stackoverflow.com/a/4182635/12201331)
18 lines
491 B
Python
18 lines
491 B
Python
from django.db import models
|
|
|
|
|
|
class XenforoUser(models.Model):
|
|
user = models.OneToOneField('auth.User',
|
|
primary_key=True,
|
|
on_delete=models.CASCADE,
|
|
related_name='xenforo')
|
|
username = models.CharField(max_length=254)
|
|
|
|
def __str__(self):
|
|
return self.username
|
|
|
|
class Meta:
|
|
permissions = (
|
|
("access_xenforo", "Can access the XenForo service"),
|
|
)
|