diff options
author | Dan McGee <dan@archlinux.org> | 2010-09-10 18:42:59 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-09-21 09:10:33 -0500 |
commit | 7c88e3e1a2b5d36281b3981e2144c2dd16c7596c (patch) | |
tree | c3f42659f89897d270114361d7c9a206fb5bee51 | |
parent | 0776b440b522f2b01801c31e89b5cf4e8073f0f1 (diff) |
Rename generate mirrorlist view
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | mirrors/views.py | 2 | ||||
-rw-r--r-- | urls.py | 2 |
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(): @@ -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']}), |