修复若干bug,优化若干代码
This commit is contained in:
@@ -4,3 +4,4 @@ from django.apps import AppConfig
|
||||
class CommentsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'apps.comments'
|
||||
verbose_name = '弹幕管理'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from rest_framework import serializers
|
||||
from .models import *
|
||||
from utils.get_msg import get_msg
|
||||
from utils.util import get_msg
|
||||
|
||||
|
||||
class CommentsInfo(serializers.ModelSerializer):
|
||||
|
||||
@@ -7,7 +7,7 @@ from rest_framework.response import Response
|
||||
from .models import *
|
||||
from .serializers import CommentsInfo
|
||||
from django.utils import timezone
|
||||
from utils.get_msg import get_msg
|
||||
from utils.util import get_msg
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
# Create your views here.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user