Skip to content

Commit

Permalink
Passing CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
stefrado committed Oct 17, 2024
1 parent f6d2a74 commit e705131
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/sdg/producten/templatetags/producten.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django import template

from sdg.producten.types import Language, ProductFieldMetadata
from sdg.producten.types import ProductFieldMetadata

register = template.Library()

Expand Down Expand Up @@ -45,19 +45,13 @@ def exclude(field_list: list, excluded_fields: str) -> list:
available=", ".join([f.name.lower() for f in field_list]),
)
)

return result


@register.inclusion_tag("producten/_include/field_info.html")
def field_info(field: ProductFieldMetadata, **kwargs):
return {**kwargs, "field": field}


@register.inclusion_tag("producten/_include/publications.html")
def publications(product, publication_links, concept_url):
return {
"product": product,
"publication_links": publication_links,
"concept_url": concept_url
}
return { "product": product, "publication_links": publication_links, "concept_url": concept_url }

0 comments on commit e705131

Please sign in to comment.