08 2021 档案
摘要:# -*- coding: utf-8 -*- """ @author: Mr_zhang @software: PyCharm @file: renamefile.py @time: 2021/8/18 下午2:55 """ import time import random # import o
阅读全文
摘要:def is_valid(self, raise_exception=False): assert hasattr(self, 'initial_data'), ( 'Cannot call `.is_valid()` as no `data=` keyword argument was ' 'pa
阅读全文
摘要:# 问题的起因是我后端设置如果参数为空不传。结果前端传给我空字符串。遂二次处理。 def create(self, request, *args, **kwargs): try: request.data._mutable = True except Exception as e: logger.i
阅读全文