I have a code that looks like this:
class BaseMessage(models.Model): is_public = models.BooleanField(default=False)
and I would like to override the default value for the is_public field in the message model so that it is True for this model.
I looked through some relevant Django docs and poked around the model objects, but I was having trouble finding a suitable place for this. Any suggestions?
python django django-models
John Debs Jun 16 '11 at 19:43 2011-06-16 19:43
source share