MuckRock / muckrock

MuckRock's source code - Please report bugs, issues and feature requests to info@muckrock.com
https://www.muckrock.com
GNU Affero General Public License v3.0
114 stars 22 forks source link

A start for the user page statistics. #1803

Closed duckduckgrayduck closed 1 year ago

duckduckgrayduck commented 1 year ago

I'm not sure if the Profile Class is the right place to call this function, or if it should be called elsewhere.

mitchelljkotler commented 1 year ago

This seems like a good start. You just need to edit the template: https://github.com/MuckRock/muckrock/blob/master/muckrock/templates/accounts/profile.html To add the output. You should be able to call the profile method directly from the template, or you could add it to the view's context data if you want (usually useful if you need more support code): https://github.com/MuckRock/muckrock/blob/master/muckrock/accounts/views.py#L198