mirror of
https://github.com/django/django.git
synced 2024-11-22 11:57:34 +01:00
9 lines
291 B
Python
9 lines
291 B
Python
from django.contrib.auth.models import User
|
|
from django.db import models
|
|
|
|
|
|
# Regression for #13368. This is an example of a model
|
|
# that imports a class that has an abstract base class.
|
|
class UserProfile(models.Model):
|
|
user = models.OneToOneField(User, models.CASCADE, primary_key=True)
|