You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 17, 2018. It is now read-only.
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 fields.py because of the object_id field being defined like this in models.py:
object_id = models.PositiveIntegerField()
Any ideas how should I deal with this ?
Thanks in advance
The text was updated successfully, but these errors were encountered:
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:
in fields.py because of the object_id field being defined like this in models.py:
Any ideas how should I deal with this ?
Thanks in advance
The text was updated successfully, but these errors were encountered: