question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document peewee 3 change of `register_fields`.

See original GitHub issue

I’m just getting around to updating my project to use peewee 3. I got most of what is in the differences page, but it doesn’t mention register_fields class method of PostgresExtDatabase is also now missing. How should I handle that?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
coleifercommented, Feb 22, 2019

You don’t need to register anything anymore.

class MyMagicalField(Field):
    field_type = 'column_data_type'

    def special_field_expression(self, value):
        return Expression(self, 'operator', value)
1reaction
coleifercommented, Feb 4, 2018

I’ve pushed a new release, 3.0.11, if you’re interested.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changes in 3.0 — peewee 3.15.4 documentation
This document describes changes to be aware of when switching from 2.x to 3.x. ... In some places, APIs that have changed will...
Read more >
Flask-User Documentation
Change Usernames, Change Passwords, and Forgotten Passwords ... Flask-User Documentation, Release v0.6. 3. User information such as ...
Read more >
peewee Documentation - Read the Docs
peewee Documentation, Release 3.0.0. 1.2.3 Retrieving Data. The real strength of our database is in how it allows us to retrieve data ...
Read more >
how to change the data type of a field using peewee in SQLite
Sqlite has limited support for altering columns. This is well-documented: https://sqlite.org/lang_altertable.html.
Read more >
Solution manual to computer design and architecture - Docsity
Computer Architecture and Design - Assignment 3 Solutions | ELEC 5200 ... o-4 2-3) Files oftype [Falcon Bin Files [“binfal =) Cancel 'Change...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found