Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoided adding tag to context. #160

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Avoided adding tag to context. #160

wants to merge 2 commits into from

Conversation

smithdc1
Copy link
Member

@smithdc1 smithdc1 commented Nov 1, 2023

"tag" can be a popular name for a queryset and therefore added to context in views. Changed tag to crispy_tag to avoid name conflicts.

Refs django-crispy-forms/django-crispy-forms#830

Need someway of easing making changes like this over multiple template packs 😄

"tag" can be a popular name for a queryset and therefore added to context in views. Changed tag to crispy_tag to avoid name conflicts.

Refs django-crispy-forms/django-crispy-forms#830
@@ -3,13 +3,13 @@
{% if field.is_hidden %}
{{ field }}
{% else %}
{% if field|is_checkbox and tag != "td" %}
{% if field|is_checkbox and crispy_tag != "td" %}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestions to name improvements welcomed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant