mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
14 lines
418 B
Python
14 lines
418 B
Python
from django.contrib.auth.models import User
|
|
from django.db import models
|
|
|
|
|
|
class ExampleUser(models.Model):
|
|
user = models.OneToOneField(User,
|
|
primary_key=True,
|
|
on_delete=models.CASCADE,
|
|
related_name='example')
|
|
username = models.CharField(max_length=254)
|
|
|
|
def __str__(self) -> str:
|
|
return self.username
|