dtinit / portmap

A structured search frontend for portability articles to help people find solutions and help us learn about needs
https://portmap.dtinit.org
Other
2 stars 0 forks source link

Adding TrackArticleView to Admin View #87

Closed aaronjae22 closed 7 months ago

aaronjae22 commented 7 months ago

The main function of this PR is to add the TrackArticleView model to Django Admin View and in this way be able to verify which articles were visited and how the user reached them.

image

Each visit to an article increments the corresponding count field displayed in the Admin View.

I'm currently working on a better way to filter.

aaronjae22 commented 7 months ago

So, we decided to add the count in the Article admin view which seems far more useful. This meant to delete code in the TrackArticleViewAdmin.

We already had def view_count in the Article model so we modify it in order to return the count for each article.