resolve backward compatibility issues

Signed-off-by: Beichi-CHs <g841734459@126.com>
This commit is contained in:
Beichi-CHs 2021-11-18 18:08:17 +08:00
parent d4b3a42f94
commit cef608b809
No known key found for this signature in database
GPG Key ID: E46962993205150E
4 changed files with 13 additions and 5 deletions

View File

@ -5,7 +5,6 @@ services:
- docker
- postgresql
install:
- pip install psycopg2
- pip install -r deploy/requirements.txt
- echo `cat /dev/urandom | head -1 | md5sum | head -c 32` > data/config/secret.key
- ./init_db.sh
@ -15,6 +14,4 @@ script:
- coverage run --include="$PWD/*" manage.py test
- coverage report
notifications:
email:
- beichi.dev@gmail.com
- 841734459@qq.com
slack: onlinejudgeteam:BzBz8UFgmS5crpiblof17K2W

View File

@ -1,5 +1,14 @@
{
"update": [
{
"version": "2021-11-20",
"level": "Important",
"title": "2021-11-20",
"details": [
"django2.x即将停止支持更新django到3.x LTS相应地更新了全部相关依赖",
"合并底包版本到python3.8-alpine3.14为移除python2做准备"
]
},
{
"version": "2021-09-28",
"level": "Recommend",

View File

@ -244,3 +244,5 @@ RAVEN_CONFIG = {
}
IP_HEADER = "HTTP_X_REAL_IP"
DEFAULT_AUTO_FIELD='django.db.models.AutoField'

View File

@ -1,4 +1,4 @@
from django.contrib.postgres.fields import JSONField # NOQA
from django.db.models import JSONField # NOQA
from django.db import models
from utils.xss_filter import XSSHtml