Skip to content

Commit 3422c84

Browse files
Add csrf token to expressionforms in alertprofiles
1 parent 613989b commit 3422c84

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

python/nav/web/templates/alertprofiles/base_detail.html

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ <h5>
3939
{% endblock %}
4040
</h5>
4141
<form action="{% block url_remove_expression %}{% endblock %}" method="post">
42+
{% csrf_token %}
4243
<table class="listtable">
4344
<thead>
4445
<tr>
@@ -67,6 +68,7 @@ <h5>
6768

6869
<div class="addexpressionform">
6970
<form action="{% block url_add_expression %}{% endblock %}" method="post">
71+
{% csrf_token %}
7072
{% block addexpression %}
7173
<p>
7274
<input type="hidden" name="id" value="{{ detail_id }}" />

python/nav/web/templates/alertprofiles/expression_form.html

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ <h4>
66
</h4>
77

88
<form action="{% url 'alertprofiles-filters-saveexpression' %}" method="post" class="custom">
9+
{% csrf_token %}
910
<table class="vertitable">
1011
<tbody>
1112
<tr>

0 commit comments

Comments
 (0)