Fix in webmodel
This commit is contained in:
parent
7a8d9af43c
commit
714aab9e8f
1 changed files with 8 additions and 0 deletions
|
|
@ -345,6 +345,14 @@ class WebModel:
|
||||||
|
|
||||||
self.enctype=False
|
self.enctype=False
|
||||||
|
|
||||||
|
# A method for change the name of table
|
||||||
|
|
||||||
|
def change_name(self, name):
|
||||||
|
|
||||||
|
self.name=name
|
||||||
|
|
||||||
|
self.order_by="ORDER BY `"+self.name+"`.`id` ASC"
|
||||||
|
|
||||||
# A method where create the new fields of this model
|
# A method where create the new fields of this model
|
||||||
|
|
||||||
def create_fields(self):
|
def create_fields(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue