1👍
✅
Looking at your error, it seems like your content_obj.id
is evaluating to None
.
You might want to see if that object indeed exists. If not, you might have to do a sanity check. Something like
{% if content_obj.id %}
<a class="liker" href="{% url 'like' content_type content_obj.id 1 %}" rel="nofollow">I Like</a>
{% endif %}
Or pass the content_obj
in the context appropriately.
Source:stackexchange.com