From ce6680f8b0dbabc2ed781c7e79bc8dee3d8ef7cf Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Sun, 2 Aug 2015 13:58:35 +0530 Subject: [PATCH] allow start_year and no_of_shows to be null in personproduction relation --- itf/itfprofiles/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itf/itfprofiles/models.py b/itf/itfprofiles/models.py index 3ee881a..1df0a78 100644 --- a/itf/itfprofiles/models.py +++ b/itf/itfprofiles/models.py @@ -546,9 +546,9 @@ class PersonProduction(models.Model): person = models.ForeignKey(Person, db_index=True) production = models.ForeignKey(Production, db_index=True, verbose_name="Name of production") role = models.CharField(max_length=255, help_text="In what capacity were you involved in the production? For eg: a director, playwright, set designer etc. If you were an actor in the play, please also mention what character you played") - start_year = models.IntegerField(max_length=4) + start_year = models.IntegerField(max_length=4, blank=True, null=True) years = models.IntegerField(blank=True, null=True, help_text="How many years were you involved in the production?") - no_of_shows = models.CharField(max_length=25, choices = SHOWS_NO_CHOICES, verbose_name="Number of shows") + no_of_shows = models.CharField(max_length=25, choices = SHOWS_NO_CHOICES, verbose_name="Number of shows", blank=True) original_cast = models.BooleanField(default=False, help_text="Check this box if you were part of the original cast of the play") def years(self):