Django makemigrations command (1.9) does not recognize Blank = True in a Boolean field

Asked

Viewed 122 times

0

I have the following model:

class Site(models.Model):
    """
    Model for a site entry
    @author: Leonardo Pessoa
    @since: 05/09/2016 
    """
    from decimal import Decimal

    consolidated_financials     = models.BooleanField(blank=True)
    type                        = models.ForeignKey(Type)
    tier1_business              = models.ForeignKey(Business, limit_choices_to = {'tier': 1}, related_name='%(class)s_tier1')

Note that the field consolidated_financials now has the parameter blank=True that did not exist in the first version of the template. When I run makemigrations, Django doesn’t recognize the change, but when I add it to another field other than the BooleanField, yes. Is there any restriction with this specific field?

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.