我有Django 1.8項目,我正在使用django-suit == 0.2.25。 當我想添加一個新的項目,我得到一個錯誤: TypeError at /admin/tours/tour/add/
unsupported operand type(s) for -: 'NoneType' and 'int'
此代碼路徑...venv/lib/python3.5/site-packages/
這裏是我的模型和管理類: ---------------------Models-----------------------
from django.contrib.auth.models import User
class PurchaseOrder(models.Model):
buyer = models.ForeignKey(User)
is_debit = m