Closed aaronjae22 closed 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.
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.
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.