擅长:python、mysql、java
<p>您已经设置了<code>read_only = True</code>,这就是为什么它在发布、放置或修补时忽略了kitchen。它是清晰的只读,所以你不能张贴到它。你知道吗</p>
<p>作为替代方法,您可以重写视图中的get\u serializer\u class()函数来实现这一点。你知道吗</p>
<p><a href="https://i.stack.imgur.com/7ZRm4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7ZRm4.png" alt="enter image description here"/></a></p>