abhiabhi94 / dj-hitcount

Basic app that allows you to track the number of hits/views for a particular object.
MIT License
2 stars 0 forks source link

Does not work with Django 3.2.5 #37

Open Aneemes opened 1 year ago

Aneemes commented 1 year ago

Trying to replace the django-hitcount library with dj-hitcount on my project, I get the same issue I got while using django-hitcount==1.3.5 ,following exception: Exception Type: DataError at /documents/detail/0f40bfe6-a49b-4209-b8fa-858a691b591c/ Exception Value: integer out of range

abhiabhi94 commented 1 year ago

hey @Aneemes, thanks for the issue. i'm sorry but i can do very little without a minimal reproducible example.

thanks.

Aneemes commented 1 year ago

I resolved it. So, the object_pk was only taking PositiveIntegerField but my project had object_id as UUID. Anyone looking for django-hitcout to support UUID can use the following forked repo: https://github.com/Aneemes/django-hitcount.git