Fixes in config and webmodel
This commit is contained in:
parent
51f0a8ec1e
commit
8d10a067bb
3 changed files with 4 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
|||
</%def>
|
||||
<%def name="set_css_arrow(simplelist, field)">
|
||||
% if simplelist.order_field==field:
|
||||
<i class="fa fa-arrow-${simplelist.order_class[simplelist.s['order']]}" aria-hidden="true"></i>
|
||||
<i class="fa fa-arrow-${simplelist.order_class[simplelist.order]}" aria-hidden="true"></i>
|
||||
% endif
|
||||
</%def>
|
||||
% if simplelist.yes_search:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue