My model:
class LineItems(models.Model):
descr = models.CharField(max_length=100)
cost = models.DecimalField(max_digits=5, decimal_places=2)
My form:
class LineItemsForm(forms.ModelForm):
class Meta:
model = LineItems
fields = ['descr', 'cost']
Can someone please tell me either 1) how to render all of the product rows as checkboxes or 2) the proper way to do this if I'm coming at it incorrectly?