Skip to content

Commit

Permalink
fix render error in WRF autoresponder
Browse files Browse the repository at this point in the history
  • Loading branch information
elichad committed Nov 8, 2023
1 parent 8137ced commit f01cdc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions amy/extrequests/templatetags/membership_active.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

@register.simple_tag
def membership_description(membership: Membership):
if type(membership) != Membership:
return ""

workshops_remaining = membership.workshops_without_admin_fee_remaining
active = membership.active_on_date(date.today())
if workshops_remaining <= 0 or not active:
Expand Down
2 changes: 1 addition & 1 deletion amy/templates/mailing/workshoprequest_admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
</p>
{% endif %}

{% include "includes/workshoprequest_details.html" with admin=True object=object %}
{% include "includes/workshoprequest_details.html" with admin=True object=object membership=None %}
1 change: 1 addition & 0 deletions amy/templates/mailing/workshoprequest_admin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Submission date: {{ object.created_at }}
State: {{ object.get_state_display }}
Person: {{ object.personal }} {{ object.family }} &lt;{{ object.email }}&gt;
Institution: {% if object.institution %}{{ object.institution }}{% else %}{{ object.institution_other_name }}{% endif %}{% if object.institution_department %}, {{ object.institution_department }}{% endif %}
Member registration code: {{ object.member_code|default:"---" }}
Workshop location: {{ object.location }}
Country: {{ object.country.name }}
Requested workshop types: {% for type in object.requested_workshop_types.all %}{{ type }}{% if not forloop.last %}, {% endif %}{% endfor %}
Expand Down

0 comments on commit f01cdc0

Please sign in to comment.