Fix spelling mistake in patterns that are ignored in coverage check

- Legacy-Id: 7080
This commit is contained in:
Ole Laursen 2014-01-08 17:41:40 +00:00
parent 5e7d8c6c08
commit 954c8fcedb

View file

@ -121,7 +121,7 @@ def check_url_coverage():
# skip some patterns that we don't bother with
def ignore_pattern(regex, pattern):
import django.views.static
return (regex in ("^_test500/",)
return (regex in ("^_test500/$",)
or regex.startswith("^admin/")
or getattr(pattern.callback, "__name__", "") == "RedirectView"
or getattr(pattern.callback, "__name__", "") == "TemplateView"