`CharField.max_length` has no effect on a Sqlite database
That is correct, and is down to the way SQLite implements text affinity columns.

If you want to enforce a max length you can add a check constraint or implement a subclass of charfield that overrides the `db_value()` method to trim the string. > That is correct, and is down to the way SQLite implements text affinity columns.
> 
> If you want to enforce a max length you can add a check constraint or implement a subclass of charfield that overrides the `db_value()` method to trim the string.

but i think this should be done by peewee itself because databases should have same behavour