-
Notifications
You must be signed in to change notification settings - Fork 15
KeyError for the citext field #10
Copy link
Copy link
Open
Description
I wanted a citext field in my API, so I decided to use this package. But it raises an error saying that there is a keyError for the citext field. The code is like so:
class Book(Model):
__tablename__ = 'books'
id = db.Column(db.String(32), primary_key=True)
book_code = db.Column(CIText())
def __init__(self, bookcode):
self.id = str(uuid.uuid4().hex)
self.book_code = bookcode
Any idea what's wrong?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels