我有这个模型字段:
class Bill_pass(models.Model):
party_code=models.ForeignKey('Suppmast',default =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()
bill_pass_dt=models.DateField(default=timezone.now)