Revert "Refs #21286 -- Enabled serializer tests with time pk model"

This reverts commit 01c6a3e227.
Unfortunately, the YAML serializer is not yet able to cope with time values.
This commit is contained in:
Claude Paroz 2017-09-18 09:34:21 +02:00
parent 01c6a3e227
commit 256182c43d
2 changed files with 4 additions and 5 deletions

View File

@ -249,9 +249,8 @@ class SmallPKData(models.Model):
# class TextPKData(models.Model): # class TextPKData(models.Model):
# data = models.TextField(primary_key=True) # data = models.TextField(primary_key=True)
# class TimePKData(models.Model):
class TimePKData(models.Model): # data = models.TimeField(primary_key=True)
data = models.TimeField(primary_key=True)
class UUIDData(models.Model): class UUIDData(models.Model):

View File

@ -26,7 +26,7 @@ from .models import (
ModifyingSaveData, NullBooleanData, O2OData, PositiveIntegerData, ModifyingSaveData, NullBooleanData, O2OData, PositiveIntegerData,
PositiveIntegerPKData, PositiveSmallIntegerData, PositiveIntegerPKData, PositiveSmallIntegerData,
PositiveSmallIntegerPKData, SlugData, SlugPKData, SmallData, SmallPKData, PositiveSmallIntegerPKData, SlugData, SlugPKData, SmallData, SmallPKData,
Tag, TextData, TimeData, TimePKData, UniqueAnchor, UUIDData, Tag, TextData, TimeData, UniqueAnchor, UUIDData,
) )
from .tests import register_tests from .tests import register_tests
@ -346,7 +346,7 @@ The end."""),
# It contains line breaks. # It contains line breaks.
# Several of them. # Several of them.
# The end."""), # The end."""),
(pk_obj, 770, TimePKData, datetime.time(10, 42, 37)), # (pk_obj, 770, TimePKData, datetime.time(10, 42, 37)),
# (pk_obj, 790, XMLPKData, "<foo></foo>"), # (pk_obj, 790, XMLPKData, "<foo></foo>"),
(pk_obj, 791, UUIDData, uuid_obj), (pk_obj, 791, UUIDData, uuid_obj),
(fk_obj, 792, FKToUUID, uuid_obj), (fk_obj, 792, FKToUUID, uuid_obj),