fix jwt decode

This commit is contained in:
pycook
2020-02-06 09:59:24 +08:00
parent 048f556936
commit 87deba2e46
4 changed files with 18 additions and 10 deletions

View File

@@ -25,6 +25,9 @@ class FormatMixin(object):
class CRUDMixin(FormatMixin):
def __init__(self, **kwargs):
super(CRUDMixin, self).__init__(**kwargs)
@classmethod
def create(cls, flush=False, **kwargs):
return cls(**kwargs).save(flush=flush)