aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/models.py
diff options
context:
space:
mode:
authorTom Christie2013-01-25 13:58:19 +0000
committerTom Christie2013-01-25 13:58:19 +0000
commitb73d7e9bb4158d5cbbd9121cda3131b6e0cafd79 (patch)
tree7e1ab025fdc286e8f0e59910046859e5e43f0e4c /rest_framework/tests/models.py
parenta3e552156943ad4131aa07bd546f445e4f852e4d (diff)
downloaddjango-rest-framework-b73d7e9bb4158d5cbbd9121cda3131b6e0cafd79.tar.bz2
Cleaning up GFK test module. Refs #607.
Diffstat (limited to 'rest_framework/tests/models.py')
-rw-r--r--rest_framework/tests/models.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/rest_framework/tests/models.py b/rest_framework/tests/models.py
index 93f09761..9ab15328 100644
--- a/rest_framework/tests/models.py
+++ b/rest_framework/tests/models.py
@@ -86,27 +86,6 @@ class ReadOnlyManyToManyModel(RESTFrameworkModel):
text = models.CharField(max_length=100, default='anchor')
rel = models.ManyToManyField(Anchor)
-# Models to test generic relations
-
-
-class Tag(RESTFrameworkModel):
- tag_name = models.SlugField()
-
-
-class TaggedItem(RESTFrameworkModel):
- tag = models.ForeignKey(Tag, related_name='items')
- content_type = models.ForeignKey(ContentType)
- object_id = models.PositiveIntegerField()
- content_object = GenericForeignKey('content_type', 'object_id')
-
- def __unicode__(self):
- return self.tag.tag_name
-
-
-class Bookmark(RESTFrameworkModel):
- url = models.URLField()
- tags = GenericRelation(TaggedItem)
-
# Model to test filtering.
class FilterableItem(RESTFrameworkModel):