Skip to content

Commit

Permalink
resolve backward compatibility issues
Browse files Browse the repository at this point in the history
Signed-off-by: Beichi-CHs <g841734459@126.com>
  • Loading branch information
Beichi-CHs committed Nov 18, 2021
1 parent d4b3a42 commit cef608b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
9 changes: 9 additions & 0 deletions docs/data.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions oj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,5 @@ def make_key(key, key_prefix, version):
}

IP_HEADER = "HTTP_X_REAL_IP"

DEFAULT_AUTO_FIELD='django.db.models.AutoField'
2 changes: 1 addition & 1 deletion utils/models.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit cef608b

Please sign in to comment.