Re: required fields during object instantiation
It may make debugging a little harder, but it gives you a lot more flexibility in constructing objects. Here's a factoryish method I wrote for testing: def create_teacher(textbook = None, user = None, start_state = None,
required fields during object instantiation
Hi All, Assuming this model: class Month(models.Model): month = models.DateField( db_index=True, verbose_name='Month' ) def __unicode__(self): return unicode(self.month.strftime('%B %Y')) Now, I could have sworn this used to throw an error if I did: