from django.db import models
from django.contrib.auth.models import AbstractUser
from django.core.validators import MaxLengthValidator


class Department(models.Model):
    name = models.CharField(max_length=200)

    class Meta:
        verbose_name = "Department"
        verbose_name_plural = "Departments"

    def __str__(self):
        return self.name


class CustomUser(AbstractUser):
    regno = models.PositiveIntegerField(default=000000000, unique=False)
    department = models.ForeignKey(Department, on_delete=models.SET_NULL, null=True)

    class Meta:
        verbose_name = "User"
        verbose_name_plural = "Users"



f9522d34214a1c62491686fc61b936e4e5aca8ed
<mask token>


class Department(models.Model):
    <mask token>


    class Meta:
        verbose_name = 'Department'
        verbose_name_plural = 'Departments'
    <mask token>


class CustomUser(AbstractUser):
    regno = models.PositiveIntegerField(default=0, unique=False)
    department = models.ForeignKey(Department, on_delete=models.SET_NULL,
        null=True)


    class Meta:
        verbose_name = 'User'
        verbose_name_plural = 'Users'

<mask token>


class Department(models.Model):
    <mask token>


    class Meta:
        verbose_name = 'Department'
        verbose_name_plural = 'Departments'

    def __str__(self):
        return self.name


class CustomUser(AbstractUser):
    regno = models.PositiveIntegerField(default=0, unique=False)
    department = models.ForeignKey(Department, on_delete=models.SET_NULL,
        null=True)


    class Meta:
        verbose_name = 'User'
        verbose_name_plural = 'Users'

<mask token>


class Department(models.Model):
    name = models.CharField(max_length=200)


    class Meta:
        verbose_name = 'Department'
        verbose_name_plural = 'Departments'

    def __str__(self):
        return self.name


class CustomUser(AbstractUser):
    regno = models.PositiveIntegerField(default=0, unique=False)
    department = models.ForeignKey(Department, on_delete=models.SET_NULL,
        null=True)


    class Meta:
        verbose_name = 'User'
        verbose_name_plural = 'Users'

from django.db import models
from django.contrib.auth.models import AbstractUser
from django.core.validators import MaxLengthValidator


class Department(models.Model):
    name = models.CharField(max_length=200)


    class Meta:
        verbose_name = 'Department'
        verbose_name_plural = 'Departments'

    def __str__(self):
        return self.name


class CustomUser(AbstractUser):
    regno = models.PositiveIntegerField(default=0, unique=False)
    department = models.ForeignKey(Department, on_delete=models.SET_NULL,
        null=True)


    class Meta:
        verbose_name = 'User'
        verbose_name_plural = 'Users'

from django.db import models
from django.contrib.auth.models import AbstractUser
from django.core.validators import MaxLengthValidator


class Department(models.Model):
    name = models.CharField(max_length=200)

    class Meta:
        verbose_name = "Department"
        verbose_name_plural = "Departments"

    def __str__(self):
        return self.name


class CustomUser(AbstractUser):
    regno = models.PositiveIntegerField(default=000000000, unique=False)
    department = models.ForeignKey(Department, on_delete=models.SET_NULL, null=True)

    class Meta:
        verbose_name = "User"
        verbose_name_plural = "Users"


