Dear Users
when I add this to models.py, default=0
Discu = models.DecimalField(max_digits=4, decimal_places=2, default=0)
then in forms.py
Unites = forms.DecimalField(required =False)
Discu = forms.DecimalField(required =False)
class Meta:
model= Invoice_billing
fields=('Item_Ctra','Unites','Discu')
Many thank for all
Just another thing is that if I add the same item it doen’t return an error message in the form