Skip to content

KeyError for the citext field #10

@farhatnawaz

Description

@farhatnawaz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions