Product model use PositiveSmallIntegerField for active_packing_unit and active_base_price fields. Value of that fields can be either 0, or 1.
CheckBoxInput widget use this code to decide when checkbox must be checked: lambda v: not (v is False or v is None or v == '')django/forms/widgets.py#496 and #503
so, both values of the fields check that chekboxes.
Best solution will be change active_bla_bla to BooleanField, but this patch is fine too.
Product model use PositiveSmallIntegerField for active_packing_unit and active_base_price fields. Value of that fields can be either 0, or 1. CheckBoxInput widget use this code to decide when checkbox must be checked:
lambda v: not (v is False or v is None or v == '')
django/forms/widgets.py#496 and #503so, both values of the fields check that chekboxes.
Best solution will be change active_bla_bla to BooleanField, but this patch is fine too.