allow start_year and no_of_shows to be null in personproduction relation
This commit is contained in:
parent
77fdef9234
commit
ce6680f8b0
|
@ -546,9 +546,9 @@ class PersonProduction(models.Model):
|
||||||
person = models.ForeignKey(Person, db_index=True)
|
person = models.ForeignKey(Person, db_index=True)
|
||||||
production = models.ForeignKey(Production, db_index=True, verbose_name="Name of production")
|
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")
|
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?")
|
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")
|
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):
|
def years(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user