mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-04-13 11:21:12 +00:00
Skipped UUID pk test if less than Django 1.7
This commit is contained in:
parent
32726cdcae
commit
fcf2829633
1 changed files with 6 additions and 3 deletions
|
|
@ -6,6 +6,7 @@ except ImportError:
|
|||
import json
|
||||
import uuid
|
||||
|
||||
from django import VERSION
|
||||
from django.contrib.auth.models import User
|
||||
from django.db import models
|
||||
from django.test import TestCase
|
||||
|
|
@ -335,6 +336,8 @@ class SortableTestCase(TestCase):
|
|||
self.assertEqual(notes, expected_notes)
|
||||
|
||||
def test_save_non_auto_field_model(self):
|
||||
model = TestNonAutoFieldModel()
|
||||
model.save()
|
||||
|
||||
if VERSION > (1, 7):
|
||||
model = TestNonAutoFieldModel()
|
||||
model.save()
|
||||
else:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in a new issue