This repository has been archived on 2019-10-12. You can view files and clone it, but cannot push or open issues or pull requests.

14 lines
455 B
Python

from django.contrib.auth.models import Group
from django.db import models
# Create your models here.
class Realm(models.Model):
name = models.CharField(max_length=200, unique=True)
email = models.CharField(max_length=200)
admin_group = models.ForeignKey(Group, models.PROTECT, blank=True, null=True)
ldap_base_dn = models.CharField(max_length=400, unique=True)
def __str__(self):
return f'{self.name} - {self.ldap_base_dn}'