mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-04-23 04:24:43 +00:00
Half-assed use of User model raises exceptions in 1.9b1
This commit is contained in:
parent
bbad2b7b47
commit
201aa3bf30
1 changed files with 4 additions and 2 deletions
|
|
@ -2,9 +2,9 @@ from __future__ import unicode_literals
|
|||
|
||||
from datetime import datetime, timedelta
|
||||
try:
|
||||
from unittest import skipUnless
|
||||
from unittest import skipIf, skipUnless
|
||||
except ImportError: # Python 2.6
|
||||
from django.utils.unittest import skipUnless
|
||||
from django.utils.unittest import skipIf, skipUnless
|
||||
|
||||
import django
|
||||
from django.db import models
|
||||
|
|
@ -867,6 +867,8 @@ class InheritanceManagerUsingModelsTests(TestCase):
|
|||
])
|
||||
|
||||
|
||||
@skipIf(
|
||||
django.VERSION == (1, 9, 0, 'beta', 1), "Something shonky in 1.9b1 when using Auth like this")
|
||||
def test_select_subclass_invalid_related_model(self):
|
||||
"""
|
||||
Confirming that giving a stupid model doesn't work.
|
||||
|
|
|
|||
Loading…
Reference in a new issue