Skip to content


Problem if my id key is not integer #14

postal2600 opened this Issue · 2 comments

3 participants


My models all extend my custom model class which id is a CharField not a PositiveIntegerField like the Django's default django.db.models.Model . So, when I try to add a vote, the code will fail at:

rating, created = Vote.objects.get(**kwargs), False

in because of the object_id field being defined like this in

object_id       = models.PositiveIntegerField()

Any ideas how should I deal with this ?

Thanks in advance


I have the same problem!


I have the same problem, since my PrimaryKey is a SlugField.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.