-
Notifications
You must be signed in to change notification settings - Fork 351
Description
We recently removed some features from the user Profile view and now want to reimplement them using only Django.
This task will be to add a "Following" tab to the user profile view. The tab should link to a sub-path of the user profile, so it is clear to the viewer that they are viewing users that a particular user is following.
Task
All of these tasks should be done in the accounts app.
- create a Django view called
UserFollowing(inaccounts/views.py) - create a URL definition
profile/<str:username>/followingthat renders theUserFollowingview ( inaccounts/urls.py) - ensure the
UserFollowingview context contains a list of users that the relevant user is following (given via theusernamein the URL)- note, it should be possible to get profiles that the user follower via
user.profile.followingor justprofile.following
- note, it should be possible to get profiles that the user follower via
- create a template to render the followed usernames - for now, extending
base.htmlso we have consistent branding (inaccounts/templates/accounts/user_civis.html)