Problem count
This commit is contained in:
@@ -7,7 +7,8 @@ class textline(object):
|
||||
@staticmethod
|
||||
def render(element, value, state):
|
||||
eid=element.get('id')
|
||||
context = {'id':eid, 'value':value, 'state':state}
|
||||
count = int(eid.split('_')[-2])-1 # HACK
|
||||
context = {'id':eid, 'value':value, 'state':state, 'count':count}
|
||||
html=render_to_string("textinput.html", context)
|
||||
return etree.XML(html)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user