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 一石数字欠我15w!!! 阅读(35) 评论(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 一石数字欠我15w!!! 阅读(123) 评论(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 一石数字欠我15w!!! 阅读(397) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示