Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making the object_pk use uuid throws ProgrammingError error. #135

Open
Aneemes opened this issue Dec 13, 2023 · 0 comments
Open

making the object_pk use uuid throws ProgrammingError error. #135

Aneemes opened this issue Dec 13, 2023 · 0 comments

Comments

@Aneemes
Copy link

Aneemes commented Dec 13, 2023

I had a project based on django 1.11 which had been using the https://github.com/Pustakalaya/django-hitcount, which is a modification of django-hitcount to support uuid. Since I migrated it to django 3.2.5, I tried doing the modification to the code as before which is on https://github.com/Aneemes/django-hitcount.git, but this one hasn't been reading the ip addresses of hits, its just using the default 10.0.0.1 for every hit.
I also tried to make a new custom hitcount model and then gave that in the settings as mentioned here, it throws a programming error:
django.db.utils.ProgrammingError: foreign key constraint "hitcount_hit_hitcount_id_b7971910_fk_hitcount_" cannot be implemented DETAIL: Key columns "hitcount_id" and "object_pk" are of incompatible types: uuid and character varying.
Doing this might cause loss of previously stored data as well.
Python version - 3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant