因此,基本上在组中,我有一个方法遍历组中的所有学生,并返回一个点列表,但它的本意是sum(),(因为我得到了一个错误,所以我尝试了一个列表来调试)。我怎么才能得到actual值而不是对象呢?object at 0x03D957D0>, <django.db.models.query_utils.DeferredAttribute object at 0x03D957D0>, <django.db.models.query_utils.DeferredAttribute</e
在将类保存到数据库之前,我想使用一个信号来检查它的值。models.Model): scheduled_end_date = models.DateTimeField()
但是,当我尝试在管理页面中添加一个新的A对象时,出现了一个异常,说明'>' not supported between instances of 'DeferredAttribute' and '