Skip to content

Commit

Permalink
Add basic docs, remove stub get_context_data
Browse files Browse the repository at this point in the history
  • Loading branch information
jieter committed Oct 17, 2023
1 parent 7691bf3 commit fe78309
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions django_tables2/columns/templatecolumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ class TemplateColumn(Column):
Arguments:
template_code (str): template code to render
template_name (str): name of the template to render
extra_context (dict): optional extra template context
context_object_name (str): name of the context variable to pas the record in, defaults to "record".
extra_context (dict): optional extra template context. If a callable is passed, it will be called with
optional record, table, value, bound_column arguments.
A `~django.template.Template` object is created from the
*template_code* or *template_name* and rendered with a context containing:
Expand Down Expand Up @@ -91,6 +93,3 @@ def value(self, **kwargs):
"""
html = super().value(**kwargs)
return strip_tags(html).strip() if isinstance(html, str) else html

def get_context_data(self, **kwargs):
return

0 comments on commit fe78309

Please sign in to comment.