Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

seems template tag library must be named the same

  • Loading branch information...
commit 712b633a2badaa4a46926b7918c445b6ecd14342 1 parent 57dddac
David Cramer authored
Showing with 0 additions and 16 deletions.
  1. +0 −16 django_histograms/templatetags/histograms.py
View
16 django_histograms/templatetags/histograms.py
@@ -1,16 +0,0 @@
-from django_histograms.utils import Histogram
-from django import template
-
-register = template.Library()
-
-def histogram_for(model, attname):
- return Histogram(model, attname).render(css=True)
-register.simple_tag(histogram_for)
-
-try:
- from coffin import template
-except ImportError:
- pass
-else:
- register = template.Library()
- register.object(histogram_for)
Please sign in to comment.
Something went wrong with that request. Please try again.