3
我試圖使用HTTP POST請求通過Tastypie和XML格式爲模型創建新對象。它適用於一個元素,但只要我嘗試創建兩個或更多元素,我就會收到錯誤。創建多個對象Tastypie POST XML
AttributeError: 'str' object has no attribute 'items'
或
'list' object has no attribute 'items'
我的請求的主體是如下:
<objects type="list">
<object>
<field>'grrrr'</field>
</object>
<object>
<field>'pfff'</field>
</object>
</objects>
謝謝你的回答,實際上我已經通過說服數據所有者使用json來改變這個特定的障礙,PATCH被激活了,儘管..我會更加註意w /可能的。 – Ambroise