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 阅读全文
posted @ 2021-08-18 16:10 前方、有光 阅读(59) 评论(0) 推荐(0)
摘要:def is_valid(self, raise_exception=False): assert hasattr(self, 'initial_data'), ( 'Cannot call `.is_valid()` as no `data=` keyword argument was ' 'pa 阅读全文
posted @ 2021-08-11 09:15 前方、有光 阅读(155) 评论(0) 推荐(0)
摘要:# 问题的起因是我后端设置如果参数为空不传。结果前端传给我空字符串。遂二次处理。 def create(self, request, *args, **kwargs): try: request.data._mutable = True except Exception as e: logger.i 阅读全文
posted @ 2021-08-07 11:38 前方、有光 阅读(438) 评论(0) 推荐(0)