l-201"> 717
+        user_id=user_id,
718
+    )
719
+    photo_thumbup.thumbup = False
720
+    photo_thumbup.save()
721
+
722
+    photo_thumbups = PhotoThumbUpInfo.objects.filter(
723
+        photo_id=photo_id,
724
+        thumbup=True,
725
+    )
726
+
727
+    return JsonResponse({
728
+        'status': 200,
729
+        'message': u'点赞取消成功',
730
+        'data': {
731
+            'thumbup': False,
732
+            'thumbups': [thumbup.thumbup_info for thumbup in photo_thumbups],
733
+        }
734
+    })
735
+
736
+
520 737
 class GroupInfoViewSet(viewsets.ModelViewSet):
521 738
     queryset = GroupInfo.objects.all().order_by('-created_at')
522 739
     serializer_class = GroupInfoSerializer

+ 0 - 4
operation/views.py

@@ -1,10 +1,6 @@
1 1
 # -*- coding: utf-8 -*-
2 2
 
3
-from django.conf import settings
4
-from django.core.files.storage import default_storage
5
-from django.db import transaction
6 3
 from django.http import JsonResponse
7
-from django.shortcuts import render, redirect
8 4
 
9 5
 from operation.models import LatestAppInfo, SplashInfo
10 6
 

kodo - Gogs: Go Git Service

Нет описания

huangqimin001: 6472cab908 :art: Support QINIU_FILE_URL_BEFORE / QINIU_FILE_URL_AFTER лет %!s(int64=3): %!d(string=назад)
..
algorithm f38d3bf980 Caesar Alg лет %!s(int64=8): %!d(string=назад)
error 9161390df8 :art: Add tenancy shot request relative apis лет %!s(int64=3): %!d(string=назад)
kuaidi fd8d621642 :art: KuaiDi100Subscribe for tenancy лет %!s(int64=3): %!d(string=назад)
redis fe6c35b7eb :art: Cache wxacode qiniu_url / scene лет %!s(int64=3): %!d(string=назад)
shells 95dc031155 :art: create_update_membercard лет %!s(int64=5): %!d(string=назад)
sql f3cf68f957 Add PAI2_HOME_WX_API for request.weixin лет %!s(int64=8): %!d(string=назад)
tencentcloud 3678649f11 :art: Add api tencentcloud/faceid/eidtoken лет %!s(int64=3): %!d(string=назад)
zbar 3e9628d0c9 iSort & Pycodestyle лет %!s(int64=5): %!d(string=назад)
__init__.py 52ce35cbfc add api uuid_init/uuid лет %!s(int64=10): %!d(string=назад)
admin_utils.py 5e79a1088e :art: iSort лет %!s(int64=4): %!d(string=назад)
disk_utils.py af2b3f483f change download.html to be generated from download.tmpl.html лет %!s(int64=10): %!d(string=назад)
group_photo_utils.py 0e7b5eb1af Update order_by of group session photos лет %!s(int64=9): %!d(string=назад)
message_utils.py f998fb9ef7 :art: iSort & PEP8 лет %!s(int64=5): %!d(string=назад)
original_CGzC_10a50000c8811190.bak.jpg 290ff6960f pyzbar лет %!s(int64=6): %!d(string=назад)
original_CGzC_10a50000c8811190.jpg 680f424408 Update water mark лет %!s(int64=9): %!d(string=назад)
paiai_96_96.png 4a8b4f8819 add watermark лет %!s(int64=10): %!d(string=назад)
paiai_water_mark.png 680f424408 Update water mark лет %!s(int64=9): %!d(string=назад)
price_utils.py 24e345a32f Add price func get_group_photo_price лет %!s(int64=9): %!d(string=назад)
qiniucdn.py 6472cab908 :art: Support QINIU_FILE_URL_BEFORE / QINIU_FILE_URL_AFTER лет %!s(int64=3): %!d(string=назад)
rdm_utils.py 4efb7f6f87 Statistic лет %!s(int64=8): %!d(string=назад)
storage_qiniu_utils.py f998fb9ef7 :art: iSort & PEP8 лет %!s(int64=5): %!d(string=назад)
storage_utils.py f998fb9ef7 :art: iSort & PEP8 лет %!s(int64=5): %!d(string=назад)
thumbnail_utils.py 5c9e21b29b add Only Once Function statistic_thumbnail_size to statistic thumbnail size лет %!s(int64=10): %!d(string=назад)
time_utils.py 511533855d Change oauth to use http лет %!s(int64=8): %!d(string=назад)
url_utils.py 135c21b40c from models_ext import BaseModelMixin, upload_file_url, upload_path лет %!s(int64=8): %!d(string=назад)
version_utils.py 13816e8774 Fix Bug: REQUEST лет %!s(int64=8): %!d(string=назад)
watermark_utils.py 5411626ebe Change watermark position лет %!s(int64=9): %!d(string=назад)
wx_utils.py 32a7d9ffa0 Update wx relative лет %!s(int64=9): %!d(string=назад)
kodo - Gogs: Go Git Service

No Description

Brightcells: 1d7cc7e786 V.wxChooseImageSuccess 8 years ago
..
migrations 8b7c49ddb9 add app to add page user_agreement/contact_us 10 years ago
templates 1d7cc7e786 V.wxChooseImageSuccess 8 years ago
__init__.py 8b7c49ddb9 add app to add page user_agreement/contact_us 10 years ago
admin.py fabef63211 set line_length=200 for isort 10 years ago
models.py fabef63211 set line_length=200 for isort 10 years ago
oauth_views.py a6195fa70d Add outtake lensman 8 years ago
page_views.py 34aac5d903 Move page relative urls from pai2/urls.py to page/urls.py 9 years ago
tests.py fabef63211 set line_length=200 for isort 10 years ago
urls.py fd1aacd74e Fix Bug: delete page/ 9 years ago
views.py 34aac5d903 Move page relative urls from pai2/urls.py to page/urls.py 9 years ago