Fixed missing duration in mix

This commit is contained in:
Fergal Moran
2013-05-02 09:28:34 +01:00
parent 5f6f670917
commit f0849d2be0
5 changed files with 23 additions and 3 deletions

View File

@@ -181,7 +181,7 @@ def toggle_follow(request):
following = UserProfile.objects.get(pk=request.POST['userId'])
if following is not None:
if profile.followers is None or (following not in profile.followers.all()):
profile.followers.add(following)
profile.add_follower(following)
response = _get_json('Followed')
else:
profile.followers.remove(following)