Skip to content

Commit db76491

Browse files
authored
add sponsors/applicationForm.js to pipeline for cachebusting (#1675)
1 parent 1f357d7 commit db76491

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

pydotorg/settings/pipeline.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
),
5151
'output_filename': 'js/main-min.js',
5252
},
53+
'sponsors': {
54+
'source_filenames': (
55+
'js/sponsors/applicationForm.js',
56+
),
57+
'output_filename': 'js/sponsors-min.js',
58+
},
5359
'IE8': {
5460
'source_filenames': (
5561
'js/plugins/IE8.js',

templates/sponsors/sponsorship_benefits_form.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,9 @@ <h3 class="title">{{ field.label }}</h3>
9292

9393
{% block javascript %}
9494
{{ block.super }}
95+
{% javascript 'sponsors' %}
96+
{% comment %}
97+
{# equivalent to: #}
9598
<script src="{{ STATIC_URL }}js/sponsors/applicationForm.js"></script>
99+
{% endcomment %}
96100
{% endblock %}

0 commit comments

Comments
 (0)