zokis/django-materialize-forms

Django 1.11 Must be a dict not context issue.

Opened this issue · 1 comments

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,
        })
    )

```

Try this

return get_template("materialize/field.html").render({
'field': field,
'col': col,
'input_type': input_type,
}
)