Updating views.py to support changes in Peewee version 3.0 (for Fields the...
Updating views.py to support changes in Peewee version 3.0 (for Fields the model_class attribute has changed to model). Previous versions of Peewee should work because of the try: except: loop I put in to first try model_class then on AttributeError try model.
Showing
Please register or sign in to comment