the Model filed can't named 'model' in peewee? -


i use peewee-async based on peewee create model has field named 'model'

class test(peewee.model):     model = peewee.charfield(max_length=255)      class meta:         database = database         db_table = 'test'         schema = 'opr'` 

when create object,it happens error:

file "/home/mwh/py3workplace/workplace/ad_tornado/handlers/opr.py", line 78, in post yield self.db.create(taskreqeven,**insert_sql) typeerror: create() got multiple values argument 'model' 

i tried use other name replace 'model',it submitted correctly database,so douted if model name can't name 'model'?

looks error in override you've created? @ code. whatever "db.create()" doing problem.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -