From 26049806d28a85bcdffa464bce625170f0d5a752 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 16 Oct 2011 21:56:41 +0530 Subject: [PATCH] null=True for int fields --- itf/scriptbank/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/itf/scriptbank/models.py b/itf/scriptbank/models.py index 14e9361..3e06ddf 100755 --- a/itf/scriptbank/models.py +++ b/itf/scriptbank/models.py @@ -25,12 +25,12 @@ class Script(ItfModel): user = models.ForeignKey(User) title = models.CharField(max_length=255) synopsis = models.TextField(blank=True) - no_characters = models.IntegerField(blank=True, help_text="Approximate number of characters") - no_of_women = models.IntegerField(blank=True, help_text="How many characters are women?") + no_characters = models.IntegerField(blank=True, null=True, help_text="Approximate number of characters") + no_of_women = models.IntegerField(blank=True, null=True, help_text="How many characters are women?") tags = TagField(blank=True) production_notes = models.TextField(blank=True, help_text="Additional production notes") language = models.CharField(max_length=32, choices=LANGUAGE_CHOICES) - approx_duration = models.IntegerField(blank=True, help_text="Approximate time, in minutes") + approx_duration = models.IntegerField(blank=True, null=True, help_text="Approximate time, in minutes") is_partial = models.BooleanField(default=False, help_text="Check this if you are uploading only a partial script") author = models.CharField(max_length=255) contact = models.EmailField()