aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/models.py
diff options
context:
space:
mode:
authorTom Christie2012-11-07 20:13:27 +0000
committerTom Christie2012-11-07 20:13:27 +0000
commit9fd061a0b68f0cef6683bf195911a2cc7ff2fa06 (patch)
tree60769e37be41acf4bf12ba4ad59737e57c55da6a /rest_framework/tests/models.py
parent066d51faa16d1cfd3c8370c6bfe46f8494bbc26a (diff)
parent09f39bd23b3c688c89551845d665395e1aabbfab (diff)
downloaddjango-rest-framework-9fd061a0b68f0cef6683bf195911a2cc7ff2fa06.tar.bz2
Merge branch 'restframework2-filter' of git://github.com/onepercentclub/django-rest-framework into filtering
Diffstat (limited to 'rest_framework/tests/models.py')
-rw-r--r--rest_framework/tests/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/rest_framework/tests/models.py b/rest_framework/tests/models.py
index 0e23734e..a2aba5be 100644
--- a/rest_framework/tests/models.py
+++ b/rest_framework/tests/models.py
@@ -95,6 +95,13 @@ class Bookmark(RESTFrameworkModel):
tags = GenericRelation(TaggedItem)
+# Model to test filtering.
+class FilterableItem(RESTFrameworkModel):
+ text = models.CharField(max_length=100)
+ decimal = models.DecimalField(max_digits=4, decimal_places=2)
+ date = models.DateField()
+
+
# Model for regression test for #285
class Comment(RESTFrameworkModel):