如何设置整数字段固定长度

时间:2018-10-13 11:32:34

标签: integer field

lass Bill_pass(models.Model):     party_code = models.ForeignKey('Suppmast',默认= autonum,on_delete = models.CASCADE)     party_name = Suppmast('party_name')     bill_no = models.CharField(max_length = 15)     bill_date = models.DateField()     bill_amt = models.DecimalField(max_digits = 20,decimal_places = 2)     material = models.TextField()     gsttype = models.CharField(max_length = 15)     gstamt = models.IntegerField(max_length = 20)     bill_pass_dt = models.DateField(默认= timezone.now)

0 个答案:

没有答案