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

Add templatetag to filter by admin projects #8456

Merged
merged 1 commit into from Sep 1, 2021
Merged

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Sep 1, 2021

This templatetag will be used in the email we are going
to send to owners of private projects.

## Which projects will be affected?

The following projects will be affected by this change:

{% load privacy_tags %}{% for project in user|projects_admin:'private' %}- [{{ project.slug }}]({{ domain }}{% url 'projects_detail' project.slug %})
{% endfor %}

Could also just be added in util01 before sending the email, but could be useful in the future.

This templatetag will be used in the email we are going
to send to owners of private projects.

```markdown
\## Which projects will be affected?

The following projects will be affected by this change:

{% load privacy_tags %}{% for project in user|projects_admin:'private' %}- [{{ project.slug }}]({{ domain }}{% url 'projects_detail' project.slug %})
{% endfor %}
```
@stsewd stsewd merged commit a12a181 into master Sep 1, 2021
@stsewd stsewd deleted the add-projects-filter branch September 1, 2021 19:09
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.

None yet

2 participants