www-bocal/bocal_auth/models.py

8 lines
250 B
Python

from django.contrib.auth.models import User
from django.db import models
class CasUser(models.Model):
"""Describes a Django user that was created through CAS"""
user = models.OneToOneField(User, on_delete=models.CASCADE, primary_key=True)