diff options
| author | root <root@lalalizard.com> | 2012-12-23 13:51:44 -0500 |
|---|---|---|
| committer | root <root@lalalizard.com> | 2012-12-24 12:06:12 -0500 |
| commit | 06a01eb199dd8564c5efa0316e727f2a85afceb5 (patch) | |
| tree | e5913b7b64f8fbc1e15117948fc0dec2f88826d6 /backend | |
| parent | cf819bf0f8d5210c676551368d9398457b167071 (diff) | |
images likes
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/views.py b/backend/views.py index a926c18..7cfbe98 100644 --- a/backend/views.py +++ b/backend/views.py @@ -932,7 +932,7 @@ def api_video_like(request): if response: return response try: - video = SJContent.objects.get(id=request.POST['video'], content_type='video') + video = SJContent.objects.get(id=request.POST['video']) if not SJLike.objects.filter(user=user, content=video): settings = video.settings if 'likes' not in settings: @@ -961,7 +961,7 @@ def api_video_unlike(request): if response: return response try: - video = SJContent.objects.get(id=request.POST['video'], content_type='video') + video = SJContent.objects.get(id=request.POST['video']) likes = SJLike.objects.filter(user=user, content=video) if likes: settings = video.settings |
