Skip to content

Commit

Permalink
refactor(templatetags)!: drop unused templatetags
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Aug 26, 2024
1 parent df36657 commit aee11cf
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions apis_bibsonomy/templatetags/bibsonomy_templatetags.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,9 @@
from django import template
from apis_bibsonomy.forms import ReferenceForm
from django.contrib.contenttypes.models import ContentType

register = template.Library()


@register.inclusion_tag("apis_bibsonomy/form_tag.html", takes_context=False)
def bibsonomy_form(
content_type=None, object_pk=None, attribute_name=None, hidden=False
):
c_dict = {
"content_type": content_type,
"object_pk": object_pk,
"attribute_name": attribute_name,
}
form = ReferenceForm(**c_dict)
return {"form": form, "hidden": hidden}


@register.inclusion_tag("apis_bibsonomy/list_tag.html", takes_context=False)
def bibsonomy_list(content_type=None, object_pk=None, attribute_name=None):
c_dict = {
"content_type": content_type,
"object_pk": object_pk,
"attribute_name": attribute_name,
}
form = ReferenceForm(**c_dict)
return {"form": form}


@register.inclusion_tag(
"apis_bibsonomy/link_to_reference_on_tag.html", takes_context=False
)
Expand Down

0 comments on commit aee11cf

Please sign in to comment.