Django 1.11 Must be a dict not context issue.
Opened this issue · 1 comments
Basiczombie commented
The following line of code is no longer valid in Django 1.11. It now raises a TypeError(context must be a dict rather than %s. % context.__class__.__name__)
return get_template("materialize/field.html").render(
Context({
'field': field,
'col': col,
'input_type': input_type,
})
)
```
VladPe commented
Try this
return get_template("materialize/field.html").render({
'field': field,
'col': col,
'input_type': input_type,
}
)