1,models.py #订单表 class Orders(models.Model): status_cat = ( ('0', '待装货'), ('1', '正在运输'), ('2', '已到达目的地'), ) orders_status = ( ('0', '待接单'), ('1', '已完成'), ) order_num = models.CharField(max_length=255,verbose_name='订单编号') order_car = models.CharField(