mirror of
https://github.com/django/django.git
synced 2024-12-23 17:46:27 +00:00
9 lines
275 B
Python
9 lines
275 B
Python
from django.db import models
|
|
from django.contrib.auth.models import User
|
|
|
|
|
|
# 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, primary_key=True)
|