From 8d10a067bb2ad447e4dae0bccd8f0bcaa00d6a3b Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Wed, 2 Nov 2016 02:02:47 +0100 Subject: [PATCH] Fixes in config and webmodel --- paramecio/citoplasma/templates/utils/list.phtml | 2 +- paramecio/cromosoma/webmodel.py | 4 ++-- paramecio/settings/config.py.sample | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/paramecio/citoplasma/templates/utils/list.phtml b/paramecio/citoplasma/templates/utils/list.phtml index 9faaa2f..fe69772 100644 --- a/paramecio/citoplasma/templates/utils/list.phtml +++ b/paramecio/citoplasma/templates/utils/list.phtml @@ -11,7 +11,7 @@ <%def name="set_css_arrow(simplelist, field)"> % if simplelist.order_field==field: - + % endif % if simplelist.yes_search: diff --git a/paramecio/cromosoma/webmodel.py b/paramecio/cromosoma/webmodel.py index 7cc0317..fe892ce 100644 --- a/paramecio/cromosoma/webmodel.py +++ b/paramecio/cromosoma/webmodel.py @@ -524,7 +524,7 @@ class WebModel: # A method por count num rows affected for sql conditions - def select_count(self, field_to_count='id', raw_query=1): + def select_count(self, field_to_count='id', raw_query=True): # Connect to db @@ -544,7 +544,7 @@ class WebModel: #Check if foreignkeyfield - if type(self.fields[field]).__name__=="ForeignKeyField" and raw_query==0: + if type(self.fields[field]).__name__=="ForeignKeyField" and raw_query==False: table_name=self.fields[field].table_name diff --git a/paramecio/settings/config.py.sample b/paramecio/settings/config.py.sample index 68951db..091d2a0 100644 --- a/paramecio/settings/config.py.sample +++ b/paramecio/settings/config.py.sample @@ -3,6 +3,7 @@ # You need install cromosoma for use this. from paramecio.cromosoma.webmodel import WebModel +from importlib import import_module # No touch it if you don't know what are you doing