Skip to content

Commit

Permalink
Change template to remove HTML validation false positive
Browse files Browse the repository at this point in the history
See motet-a/jinjalint#19 for further details.
  • Loading branch information
thibaudcolas committed May 9, 2019
1 parent a21649d commit 7e5c98b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
<div class="row row-flush">

{% usage_count_enabled as uc_enabled %}
{% if uc_enabled %}
<div class="col10 divider-after">
{% else %}
<div class="col12">
{% endif %}
<div class="{% if uc_enabled %}col10 divider-after{% else %}col12{% endif %}">
<form action="{% url 'wagtailsnippets:edit' model_opts.app_label model_opts.model_name instance.pk|admin_urlquote %}" method="POST" novalidate{% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
{{ edit_handler.render_form_content }}
Expand Down
11 changes: 11 additions & 0 deletions wagtail/tests/manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python
import os
import sys


if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wagtail.tests.settings")

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)

0 comments on commit 7e5c98b

Please sign in to comment.