www-bocal/bocal_auth/models.py

9 lines
250 B
Python
Raw Permalink Normal View History

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)