Let's say I have some Django model that is an abstract base class:
class Foo(models.Model):
value=models.IntegerField()
class Meta:
abstract = True
and it has two derived classes, where I'd like the default value of the field to be different for each child classes. I can't simply override the field
class Bar(Foo):
value=models.IntegerField(default=9)
because Django won't let you override fields in subclasses. I've seen posts about trying to changes available choices, but in this case I care mostly about changing the default value. Any advice?