Skip to content

Add "Following" tab to the user profile view #1447

@brylie

Description

@brylie

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 (in accounts/views.py)
  • create a URL definition profile/<str:username>/following that renders the UserFollowing view ( in accounts/urls.py)
  • ensure the UserFollowing view context contains a list of users that the relevant user is following (given via the username in the URL)
    • note, it should be possible to get profiles that the user follower via user.profile.following or just profile.following
  • create a template to render the followed usernames - for now, extending base.html so we have consistent branding (in accounts/templates/accounts/user_civis.html)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions