django-schedule icon indicating copy to clipboard operation
django-schedule copied to clipboard

OverflowError: Python int too large to convert to SQLite INTEGER

Open rodolphopivetta opened this issue 8 years ago • 1 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

rodolphopivetta avatar May 17 '16 01:05 rodolphopivetta

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

rodolphopivetta avatar May 17 '16 22:05 rodolphopivetta