Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Peewee 3 #133

Open
lyschoening opened this issue Mar 22, 2018 · 2 comments
Open

Support Peewee 3 #133

lyschoening opened this issue Mar 22, 2018 · 2 comments

Comments

@lyschoening
Copy link
Contributor

No description provided.

@shayneoneill
Copy link

shayneoneill commented Nov 9, 2021

I guess this never got fixed? Maybe worth putting a note up that peewee3 isn't supported. This has bitten me pretty hard.

@shayneoneill
Copy link

The fixes, by the way, seem to be

if column.primary_key or model._meta.name in model._meta.refs: (mentioned in linked issue, change rel to refs)

and

meta['name'] = model._meta.db_table.lower() becomes meta['name'] = model._meta.table_name.lower()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants