aboutsummaryrefslogtreecommitdiffstats
path: root/examples/modelresourceexample/models.py
diff options
context:
space:
mode:
authormarkotibold2011-03-06 13:26:19 +0100
committermarkotibold2011-03-06 13:26:19 +0100
commit177e666fc2b2781fde35dca72dbf1b3710213706 (patch)
treece714aabc1cdc246f3b5c4ca6365d6529b93361a /examples/modelresourceexample/models.py
parentbba89cbcf13d35e32efd2035258063e7f0967e0d (diff)
downloaddjango-rest-framework-177e666fc2b2781fde35dca72dbf1b3710213706.tar.bz2
BlogPosts > 10 rotation implemeneted
Latest Modelresource example is broken. Required attribute should be set to form, not model. Is fixed.
Diffstat (limited to 'examples/modelresourceexample/models.py')
-rw-r--r--examples/modelresourceexample/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/modelresourceexample/models.py b/examples/modelresourceexample/models.py
index c235d7b3..16047524 100644
--- a/examples/modelresourceexample/models.py
+++ b/examples/modelresourceexample/models.py
@@ -3,7 +3,7 @@ from django.db import models
MAX_INSTANCES = 10
class MyModel(models.Model):
- foo = models.BooleanField(required=False)
+ foo = models.BooleanField()
bar = models.IntegerField(help_text='Must be an integer.')
baz = models.CharField(max_length=32, help_text='Free text. Max length 32 chars.')
created = models.DateTimeField(auto_now_add=True)