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?