How do I edit the values in the fields in django-tables2?
This is what I have written in my Tables.py file. It displays edLevel as 6 but field isn't editable any more.
TEMPLATE:
<input id="count" maxlength="100" name="count" type="text"/>
Tables.py:
class IngredientsTable(tables.Table):
edLevel = tables.TemplateColumn(TEMPLATE)
def render_edLevel(self):
value = 6
return (value)
class Meta:
model = Ingredients