关于TypeError: unorderable types: int() > DeferredAttribute()

> DeferredAttribute TypeError:unorderable类型:int()()的BUG

BUG报错如下图:关于TypeError: unorderable types: int() > DeferredAttribute()

经过排除,是由于赋值的原因造成的!

if count > sku.stock:

    pass

这种错误老是出现,记下来,希望以后可以不再同一个坑掉俩次!