aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-03-03 09:02:41 +0000
committertom christie tom@tomchristie.com2011-03-03 09:02:41 +0000
commit60206e5288d78d1a5e2eccd799350bf96fc27d85 (patch)
tree0d61e286712503d500db86a6979dc45533c86064 /examples
parentaad7eacce6ed894c84b0b49567eaccbbe6bf0813 (diff)
downloaddjango-rest-framework-60206e5288d78d1a5e2eccd799350bf96fc27d85.tar.bz2
./examples/modelresourceexample/models.py
Diffstat (limited to 'examples')
-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 16047524..c235d7b3 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()
+ foo = models.BooleanField(required=False)
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)