summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-10 18:42:59 -0500
committerDan McGee <dan@archlinux.org>2010-09-21 09:10:33 -0500
commit7c88e3e1a2b5d36281b3981e2144c2dd16c7596c (patch)
treec3f42659f89897d270114361d7c9a206fb5bee51
parent0776b440b522f2b01801c31e89b5cf4e8073f0f1 (diff)
Rename generate mirrorlist view
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--mirrors/views.py2
-rw-r--r--urls.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/mirrors/views.py b/mirrors/views.py
index ddc42cbb..b4c2c2c7 100644
--- a/mirrors/views.py
+++ b/mirrors/views.py
@@ -21,7 +21,7 @@ class MirrorlistForm(forms.Form):
self.fields['protocol'].initial = [t[0] for t in protos]
@csrf_exempt
-def generate(request):
+def generate_mirrorlist(request):
if request.REQUEST.get('country', ''):
form = MirrorlistForm(data=request.REQUEST)
if form.is_valid():
diff --git a/urls.py b/urls.py
index 00d0986f..f2ef3418 100644
--- a/urls.py
+++ b/urls.py
@@ -73,7 +73,7 @@ urlpatterns = patterns('',
(r'^mirrors/$', 'devel.views.mirrorlist', {}, 'mirrors-list'),
- (r'^mirrorlist/$', 'mirrors.views.generate', {}, 'mirrorlist'),
+ (r'^mirrorlist/$', 'mirrors.views.generate_mirrorlist', {}, 'mirrorlist'),
(r'^mirrorlist/all/$', 'mirrors.views.find_mirrors', {'countries': ['all']}),
(r'^mirrorlist/all/ftp/$', 'mirrors.views.find_mirrors',
{'countries': ['all'], 'protocols': ['ftp']}),