diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html b/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html index ec5f68d2eefe..2d6d5f6e2f6e 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html @@ -8,11 +8,7 @@
{% usage_count_enabled as uc_enabled %} - {% if uc_enabled %} -
- {% else %} -
- {% endif %} +
{% csrf_token %} {{ edit_handler.render_form_content }} diff --git a/wagtail/tests/manage.py b/wagtail/tests/manage.py new file mode 100755 index 000000000000..b1d81560ac20 --- /dev/null +++ b/wagtail/tests/manage.py @@ -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)