This repository was archived by the owner on Oct 23, 2023. It is now read-only.
Commit 9c2bbd6
Update Django message ref example for 1.11, fixes #993
- Use a `TemplateResponse` (backwards compatible to Django 1.7)
instead of trying to pass a `Context` object to an instance of
`django.template.backends.django.Template.render` which is
no longer allowed (see #993)
- Verified working with example app (Python 3.5, Django 1.11)
before changing example in docs1 parent bc9d996 commit 9c2bbd6
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
| 199 | + | |
201 | 200 | | |
202 | 201 | | |
203 | 202 | | |
| |||
206 | 205 | | |
207 | 206 | | |
208 | 207 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
213 | 211 | | |
214 | 212 | | |
215 | 213 | | |
| |||
0 commit comments