mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
cleaned up last commit
This commit is contained in:
parent
705c7ad09d
commit
7f28a78414
|
@ -3,7 +3,7 @@ from django.test import TestCase
|
|||
from rest_framework import serializers
|
||||
from rest_framework.tests.models import (ActionItem, Anchor, BasicModel,
|
||||
BlankFieldModel, BlogPost, Book, CallableDefaultValueModel, DefaultValueModel,
|
||||
ManyToManyModel, Person, ReadOnlyManyToManyModel, BlogPostComment)
|
||||
ManyToManyModel, Person, ReadOnlyManyToManyModel)
|
||||
|
||||
|
||||
class SubComment(object):
|
||||
|
@ -643,27 +643,6 @@ class BlankFieldTests(TestCase):
|
|||
self.assertEquals(serializer.is_valid(), False)
|
||||
|
||||
|
||||
#class PersonGroup(object):
|
||||
# name = "group"
|
||||
# persons = [Person(name="joe"), Person(name="job")]
|
||||
#
|
||||
#class PersonGroupSerializer(serializers.Serializer):
|
||||
# name = serializers.CharField()
|
||||
# persons = PersonSerializer()
|
||||
#
|
||||
#class BlogPostSerializer(serializers.ModelSerializer):
|
||||
# class Meta:
|
||||
# model = BlogPost
|
||||
#
|
||||
#
|
||||
#class BlogPostCommentSerializer(serializers.ModelSerializer):
|
||||
# class Meta:
|
||||
# model = BlogPostComment
|
||||
# fields = ('text', 'blog_post')
|
||||
#
|
||||
# blog_post = BlogPostSerializer()
|
||||
#
|
||||
|
||||
#test for issue #460
|
||||
class SerializerPickleTests(TestCase):
|
||||
""" Test pickleability of the output of Serializers
|
||||
|
|
Loading…
Reference in New Issue
Block a user