Commit 51adb6b
authored
Don't use exception, instead of figure out what view it is. (#124)
Figuring out which view it is and adding the correct property to
that view is better than trying to re-render the view itself.
This should solve for django's generic views. It won't work
for Django vanilla views package, but we can deal with this
later if someone show interest for that.1 parent 09375f9 commit 51adb6b
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
0 commit comments