Events extension: SQLite error when purchasing ticket - dict type not supported for 'extra' field #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Description
When trying to purchase an event ticket, SQLite throws an error because the
extrafield is being passed as a Python dict instead of a JSON string.Error Message
Root Cause
The
extrafield is being passed as a Python dictionary:SQLite doesn't support dict types directly - it needs to be serialized to a JSON string first.
Expected Fix
The
extrafield should be JSON serialized before insertion:Or the model should handle serialization automatically (e.g., using a JSON field type or a custom serializer).
Environment