thauber / django-schedule

A calendaring app for Django. It is now stable, Please feel free to use it now. Active development has been taken over by bartekgorny.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OverflowError: Python int too large to convert to SQLite INTEGER

rodolphopivetta opened this issue · comments

I'm trying to use Calendar with my User model where i use UUID as pk, and I can't create calendar, I believe, because this line where the object_id is saved as integerfield. In my case, this cause the error:

OverflowError: Python int too large to convert to SQLite INTEGER

I suggest the field object_id can be a CharField, as explained in the "Primary key type compatibility" note in the class GenericForeignKey documentation