Skip to content

Commit b203298

Browse files
jlubckeboxed
authored andcommitted
Only report template usage once in debug menu
Also fix an example
1 parent 42ffb3e commit b203298

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

examples/examples/table_examples.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class BarTable(Table):
130130

131131
class Meta:
132132
title = 'Kitchen sink'
133-
_name = 'bar'
134133
page_size = 20
135134

136135
return BarTable(rows=TBar.objects.all())

iommi/debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def url_for_template(t):
190190
url_for_template(t),
191191
t,
192192
)
193-
for t in request.iommi_used_templates
193+
for t in set(request.iommi_used_templates)
194194
]
195195
links = format_html('{}' * len(links), *links)
196196
return HttpResponse(

0 commit comments

Comments
 (0)