From 714aab9e8f8787ca45f2afa91374476582d646c5 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Sat, 9 Dec 2017 02:06:45 +0100 Subject: [PATCH] Fix in webmodel --- paramecio/cromosoma/webmodel.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paramecio/cromosoma/webmodel.py b/paramecio/cromosoma/webmodel.py index 1be5ce9..c445ab7 100644 --- a/paramecio/cromosoma/webmodel.py +++ b/paramecio/cromosoma/webmodel.py @@ -345,6 +345,14 @@ class WebModel: 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 def create_fields(self):