-3
爲什麼不能我在下面的代碼行使用photo__slug=photo_slug
:FieldError:無法將關鍵字'照片'解析爲字段。選項包括:標題,DATE_ADDED,編號,圖片,名稱,蛞蝓,源
photo = get_object_or_404(Photo, photo__slug=photo_slug)
我不斷收到同樣的錯誤: FieldError: Cannot resolve keyword 'photo' into field. Choices are: caption, date_added, id, image, name, slug, source
我們怎麼可能知道?你沒有給我們任何你的模型的細節。 –