Commit ea5f3ca
committed
fix: update format_html usage for Django 6.0 compatibility
Django 6.0 requires format_html() to have arguments or kwargs. Changed static
HTML strings to use mark_safe() instead, and properly formatted the CSS link
with a placeholder.
Changes:
- enable_source(): Changed format_html() to mark_safe()
- enable_quotes(): Changed format_html() to mark_safe()
- font_awesome_css(): Fixed format_html() to use proper placeholder
Fixes TypeError: args or kwargs must be provided.1 parent 452a5b1 commit ea5f3ca
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
0 commit comments