Skipped UUID-pk model if Django less than 1.8
parent
bf75b85190
commit
6e6b92d759
|
|
@ -33,6 +33,7 @@ class TestSortableModel(SortableMixin):
|
|||
return self.title
|
||||
|
||||
|
||||
if VERSION > (1, 8):
|
||||
class TestNonAutoFieldModel(SortableMixin):
|
||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
order = models.PositiveIntegerField(editable=False, db_index=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue