The serializer field might be named incorrectly and not match any attribute or key on the `QuerySet`Original exception text was: 'QuerySet' object has no attribute 'product'.Choices are: created, expiration, history, id, product, stock
我不能使用.get(),因为该查询要求许多批具有相同
我是Python和Django.I的新手。我正在尝试为我的一个基于图像的网站调整图像的大小。我有一个视图,它实际上渲染了所有的图像,这些图像正在使用基本宽度调整大小,如下所示。AttributeError at /showphoto/这是我的照片模型..
class Photo(models.Model