You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I get a proper documentation on how to use ajax or javascript to follow and unfollow objects then return - 'unfollow' if I follow and 'Follow' if I unfollow. Just like the way Twitter 'follow and unfollow' works. I don't want any redirection. Kindly help with what I'm missing.
In the template, I just have this.
<a href="{% follow_url other_user %}">
{% if request.user|is_following:other_user %}
stop following
{% else %}
follow
{% endif %}
</a>
The text was updated successfully, but these errors were encountered:
Can I get a proper documentation on how to use ajax or javascript to follow and unfollow objects then return - 'unfollow' if I follow and 'Follow' if I unfollow. Just like the way Twitter 'follow and unfollow' works. I don't want any redirection. Kindly help with what I'm missing.
In the template, I just have this.
The text was updated successfully, but these errors were encountered: