Permalink
Browse files

Hardcode the use of auth.Models over get_user_model. (Closes: #1)

  • Loading branch information...
lamby committed Sep 12, 2018
1 parent 7a93da7 commit f06d23fbd2334fc6d50b58940adc5f34c246857f
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_auto_one_to_one/models.py
@@ -1,8 +1,8 @@
import six
from django.db import models
from django.contrib.auth import get_user_model
from django.db.models.signals import post_save, pre_delete
from django.contrib.auth.models import User
def AutoOneToOneModel(parent, related_name=None, attr=None, on_delete=models.CASCADE, auto=True):
@@ -136,4 +136,4 @@ def __str__(self):
def PerUserData(*args, **kwargs):
return AutoOneToOneModel(get_user_model(), *args, **kwargs)
return AutoOneToOneModel(User, *args, **kwargs)

0 comments on commit f06d23f

Please sign in to comment.