Skip to content
Snippets Groups Projects
Verified Commit e5d87e02 authored by Benjamin Graillot's avatar Benjamin Graillot Committed by ynerant
Browse files

[unix] Link a Passwd object with a user

parent 252787c7
No related branches found
No related tags found
1 merge request!44Unix ldap
from django.conf import settings
from django.db import models
from django.utils.translation import gettext_lazy as _
class Passwd(models.Model):
user = models.OneToOneField(
settings.AUTH_USER_MODEL,
on_delete=models.PROTECT,
related_name='unix',
verbose_name=_("user"),
)
uid = models.CharField(
max_length=32,
verbose_name=_("user ID"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment