mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-17 06:20:33 +00:00
Run non auto field model test unconditional
This commit is contained in:
parent
9997644929
commit
28fe5d1460
1 changed files with 2 additions and 6 deletions
|
|
@ -6,7 +6,6 @@ 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
|
||||
|
|
@ -312,8 +311,5 @@ class SortableTestCase(TestCase):
|
|||
self.assertEqual(notes, expected_notes)
|
||||
|
||||
def test_save_non_auto_field_model(self):
|
||||
if VERSION > (1, 8):
|
||||
model = TestNonAutoFieldModel()
|
||||
model.save()
|
||||
else:
|
||||
pass
|
||||
model = TestNonAutoFieldModel()
|
||||
model.save()
|
||||
|
|
|
|||
Loading…
Reference in a new issue