Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.11 Must be a dict not context issue. #3

Open
Basiczombie opened this issue Apr 6, 2017 · 1 comment
Open

Django 1.11 Must be a dict not context issue. #3

Basiczombie opened this issue Apr 6, 2017 · 1 comment

Comments

@Basiczombie
Copy link

Basiczombie commented Apr 6, 2017

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

```
jonesnc added a commit to IronCountySchoolDistrict/django-materialize-forms that referenced this issue Apr 6, 2017
…e starting with Django 1.11 passing a Context instance raises a TypeError.
@VladPe
Copy link

VladPe commented Jun 2, 2017

Try this

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants