summaryrefslogtreecommitdiff
path: root/mirrors/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-07-31 19:56:49 -0500
committerDan McGee <dan@archlinux.org>2012-07-31 19:56:49 -0500
commit686942b8788fa43031b3999ac00d60baadc82f53 (patch)
treec8c9dda2af8454f382205e627df526d9aa42d83c /mirrors/views.py
parentf5d3c02eb14ea8b0018e17fa9be9c511ad7ebff9 (diff)
Declare 'enums' at class scope
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/views.py')
-rw-r--r--mirrors/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mirrors/views.py b/mirrors/views.py
index 400c084d..2c2577f4 100644
--- a/mirrors/views.py
+++ b/mirrors/views.py
@@ -12,7 +12,7 @@ from django.shortcuts import get_object_or_404, render
from django.views.decorators.csrf import csrf_exempt
from django_countries.countries import COUNTRIES
-from .models import Mirror, MirrorUrl, MirrorProtocol, TIER_CHOICES
+from .models import Mirror, MirrorUrl, MirrorProtocol
from .utils import get_mirror_statuses, get_mirror_errors
COUNTRY_LOOKUP = dict(COUNTRIES)
@@ -186,7 +186,7 @@ def mirror_details(request, name):
def status(request, tier=None):
if tier is not None:
tier = int(tier)
- if tier not in [t[0] for t in TIER_CHOICES]:
+ if tier not in [t[0] for t in Mirror.TIER_CHOICES]:
raise Http404
bad_timedelta = timedelta(days=3)
status_info = get_mirror_statuses()