summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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']}),