1👍
✅
You’ve used both user_following
and user_followers
as standalone variables in your template; but they are not, they are methods on User. However, you have passed following
and followers
variables into your context; perhaps you meant to use those instead?
(Note that neither of those methods do anything useful at all; they are exactly equivalent to calling user.followers.all()
or user.following.all()
, so you might as well do that in your views or templates.)
Source:stackexchange.com