diff --git a/tests/serializers_regress/models.py b/tests/serializers_regress/models.py
index 35c4e10..86151ad 100644
a
|
b
|
class SmallPKData(models.Model):
|
272 | 272 | # data = models.TimeField(primary_key=True) |
273 | 273 | |
274 | 274 | |
| 275 | class UUIDData(models.Model): |
| 276 | data = models.UUIDField(primary_key=True) |
| 277 | |
275 | 278 | class ComplexModel(models.Model): |
276 | 279 | field1 = models.CharField(max_length=10) |
277 | 280 | field2 = models.CharField(max_length=10) |
diff --git a/tests/serializers_regress/tests.py b/tests/serializers_regress/tests.py
index 3653ffc..e00d68a 100644
a
|
b
|
from __future__ import unicode_literals
|
10 | 10 | |
11 | 11 | import datetime |
12 | 12 | import decimal |
| 13 | import uuid |
13 | 14 | from unittest import skipUnless |
14 | 15 | |
15 | 16 | from django.core import serializers |
… |
… |
from .models import (
|
35 | 36 | PositiveIntegerData, PositiveIntegerPKData, PositiveSmallIntegerData, |
36 | 37 | PositiveSmallIntegerPKData, ProxyBaseModel, ProxyProxyBaseModel, SlugData, |
37 | 38 | SlugPKData, SmallData, SmallPKData, Tag, TextData, TimeData, UniqueAnchor, |
| 39 | UUIDData, |
38 | 40 | ) |
39 | 41 | |
40 | 42 | try: |
… |
… |
The end."""),
|
354 | 356 | # The end."""), |
355 | 357 | # (pk_obj, 770, TimePKData, datetime.time(10, 42, 37)), |
356 | 358 | # (pk_obj, 790, XMLPKData, "<foo></foo>"), |
| 359 | (pk_obj, 791, UUIDData, uuid.uuid4()), |
357 | 360 | |
358 | 361 | (data_obj, 800, AutoNowDateTimeData, datetime.datetime(2006, 6, 16, 10, 42, 37)), |
359 | 362 | (data_obj, 810, ModifyingSaveData, 42), |