slight change needed for flask-admin/contrib/peewee/forms.py
I'm not sure why `flask-admin` was importing `BaseModel`...it's changed in 3.0 to `ModelBase`. So the following should work:

```python
from peewee import (CharField, DateTimeField, DateField, TimeField,
                    PrimaryKeyField, ForeignKeyField)
try:
    from peewee import BaseModel
except ImportError:
    from peewee import ModelBase as BaseModel
``` `peewee.BaseModel` (and latterly `peewee.ModelBase`) is the metaclass that is used to create `Model` classes. It's an internal implementation thing, so I'm not sure why it's being imported by flask-admin. They are checking something with "is_instance()" against the BaseModel

On Tue, Feb 6, 2018 at 10:56 AM, Charles Leifer <notifications@github.com>
wrote:

> peewee.BaseModel (and latterly peewee.ModelBase) is the metaclass that is
> used to create Model classes. It's an internal implementation thing, so
> I'm not sure why it's being imported by flask-admin.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/coleifer/peewee/issues/1475#issuecomment-363467201>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ADyqBIioDqlqVzFdl_10Q4_EguxmbPiDks5tSHYjgaJpZM4R7QH4>
> .
>



-- 
Jeff Muday
Instructional Technology Analyst
Wake Forest University
1834 Wake Forest Rd.
Winston Hall Rm. 27
Winston Salem, NC 27106
mudayja @ wfu . edu
p 336.758.6171
f  336.758.6004

Charles-- Peewee is great; simple and expressive  (it was introduced to me by Kenneth Love).

I noticed this small issue with interoperability with flask-admin, see below.

Issue: (flask-admin) slight change needed for flask-admin/contrib/peewee/form.py

The latest version of peewee (3.0) no longer includes BaseModel.   So... this import should be changed for compatibility or simply substitute Model for BaseModel.

Do you agree?

```python
### original ####
from peewee import (CharField, DateTimeField, DateField, TimeField,
                    PrimaryKeyField, ForeignKeyField, BaseModel)
```
```python
### change to #####
from peewee import (CharField, DateTimeField, DateField, TimeField,
                    PrimaryKeyField, ForeignKeyField)

from peewee import Model as BaseModel
```