This QueryDict instance is immutable

后端 未结 5 1089
夕颜
夕颜 2020-12-30 06:10

I have a Branch model with a foreign key to account (the owner of the branch):

class Branch(SafeDeleteModel):
    _safedelete_policy = SOFT_DELETE_CASCADE
           


        
5条回答
  •  北海茫月
    2020-12-30 06:29

    https://docs.djangoproject.com/en/2.0/ref/request-response/#querydict-objects

    The QueryDicts at request.POST and request.GET will be immutable when accessed in a normal request/response cycle. To get a mutable version you need to use QueryDict.copy().

提交回复
热议问题