Commits

Luke Plant committed c639694

Made FilterSet.get_template more useful by passing field name to it.

  • Participants
  • Parent commits 297e0ed

Comments (0)

Files changed (1)

django_easyfilters/filterset.py

                                link_type=c.link_type,
                                count=c.count)
                           for c in choices]
-        return self.get_template().render(template.Context(ctx))
+        return self.get_template(filter_.field).render(template.Context(ctx))
 
-    def get_template(self):
+    def get_template(self, field_name):
         return template.Template(self.template)
 
     def render(self):