Skip to content
Browse files

Removed an extra ContentType lookup

  • Loading branch information...
1 parent 2bca3dc commit 1d99a67592267fd6e595dc58720fbd2361828d19 Tim Heap committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 phileo/templatetags/phileo_tags.py
View
2 phileo/templatetags/phileo_tags.py
@@ -93,7 +93,7 @@ def phileo_widget(user, obj, widget_id=None, like_type="like", toggle_class="phi
})
liked = Like.objects.filter(
sender = user,
- receiver_content_type = ContentType.objects.get_for_model(obj),
+ receiver_content_type = ct,
receiver_object_id = obj.pk
).exists()

0 comments on commit 1d99a67

Please sign in to comment.
Something went wrong with that request. Please try again.