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

Can't use this package because my models have uuids as primary key #23

Closed
Arwaroel opened this issue Sep 30, 2021 · 2 comments · Fixed by #26
Closed

Can't use this package because my models have uuids as primary key #23

Arwaroel opened this issue Sep 30, 2021 · 2 comments · Fixed by #26

Comments

@Arwaroel
Copy link

Hello,
i can't find a way to use this package because i am using uuids as pk for most of my models. This clashes with the object_id = models.PositiveIntegerField().
Trying to vote on an object with uuid results in DataError: integer out of range

As far as i know it should be possible to use object_id = models.PositiveIntegerField() as well.
See: https://docs.djangoproject.com/en/3.2/ref/contrib/contenttypes/#django.contrib.contenttypes.fields.GenericForeignKey

Would it be possible, to include this functionality ? I would be clad if i could help making this change possible. But this would be my first contribution to open source and I would need some guidance.

@Arwaroel
Copy link
Author

Arwaroel commented Dec 6, 2021

Hello,
Thanks for making this change. I soon will start using the new Version.

@hramezani
Copy link
Member

Hello,
The new version has not been released yet. I will let you know when it released.

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