Allow State.next_states to be blank so the admin doesn't barf

- Legacy-Id: 5023
This commit is contained in:
Ole Laursen 2012-11-07 14:57:04 +00:00
parent 9b73aa30b9
commit 6c91e93886

View file

@ -27,7 +27,7 @@ class State(models.Model):
desc = models.TextField(blank=True)
order = models.IntegerField(default=0)
next_states = models.ManyToManyField('State', related_name="previous_states")
next_states = models.ManyToManyField('State', related_name="previous_states", blank=True)
def __unicode__(self):
return self.name