Skip to content

Commit

Permalink
Merge pull request #8267 from cfpb/deprecate/jinja-get-model
Browse files Browse the repository at this point in the history
Remove unused v1.jinja2tags.get_model
  • Loading branch information
chosak authored Mar 22, 2024
2 parents 71eed83 + 9876400 commit 72a2e9b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cfgov/v1/jinja2tags/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from django.utils.module_loading import import_string

from jinja2 import pass_context
from jinja2.ext import Extension

Expand All @@ -12,11 +10,6 @@
from v1.util.util import get_unique_id


def get_model(model_name):
model_class = import_string(model_name)
return model_class


def image_alt_value(image):
"""Given an ImageBasic block or a CFGOVImage rendition as `image`,
return the appropriate alt text.
Expand Down Expand Up @@ -121,7 +114,6 @@ def __init__(self, environment):
"category_label": ref.category_label,
"choices_for_page_type": ref.choices_for_page_type,
"get_category_icon": ref.get_category_icon,
"get_model": get_model,
"get_unique_id": get_unique_id,
"image_alt_value": image_alt_value,
"is_blog": ref.is_blog,
Expand Down

0 comments on commit 72a2e9b

Please sign in to comment.