Reinami / sanic_crud

MIT License
54 stars 12 forks source link

Does not work wth latest Sanic release. #73

Open platomaniac opened 5 years ago

platomaniac commented 5 years ago

Cool lib but there was problem with latest release of Sanic and peewee 3.8.0. First was the import error with log, After fixing that with from sanic.log import logger as log ended up with an error that points to this:

class CrudShortcuts(object):
    def __init__(self, model):
        self.table_name = model._meta.db_table
        self.model = model

I get the following error.

self.table_name = model._meta.db_table AttributeError: 'Metadata' object has no attribute 'db_table'

This is a great handy lib. Will be nice to get a fix.

skewty commented 5 years ago

@Typhon66 is this project dead? Should we move to the last updated fork and try and move on from there?