klen / klen/flask-pw

Peewee 3.0 update breaking changes

Open
#56 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
43
Forks
8
PR merge metrics
No merged PRs in 30d

Description

class BaseSignalModel(pw.BaseModel):
change to
class BaseSignalModel(pw.ModelBase):

if cls._meta.db_table and cls._meta.db_table != 'model':
change to
if cls._meta.table_name and cls._meta.table_name != 'model':

Contributor guide

Open the contributing guide

Research direction

Locate the BaseSignalModel definition and the code that reads cls._meta.db_table; compare both references with the Peewee 3.0 names shown in the issue. Update those two compatibility points and run the project's available tests to confirm model setup and table-name handling still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
backend, database
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.