mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-12 14:00:17 +02:00
16 lines
480 B
Python
16 lines
480 B
Python
from django.contrib.auth.models import User
|
|
from django.db import models
|
|
|
|
|
|
class Ips4User(models.Model):
|
|
user = models.OneToOneField(User, primary_key=True, on_delete=models.CASCADE, related_name="ips4")
|
|
username = models.CharField(max_length=254)
|
|
id = models.CharField(max_length=254)
|
|
|
|
class Meta:
|
|
default_permissions = ()
|
|
permissions = (("access_ips4", "Can access the IPS4 service"),)
|
|
|
|
def __str__(self) -> str:
|
|
return self.username
|