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)