1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-24 05:25:03 +00:00

postkey: rename "index" to "addkey"

This commit is contained in:
Hidden Z 2010-10-06 19:02:08 +00:00
parent 8c52722996
commit 60ba81d91c
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
from django.conf.urls.defaults import * from django.conf.urls.defaults import *
urlpatterns = patterns('web.postkey.views', urlpatterns = patterns('web.postkey.views',
(r'^$', 'index'), (r'^$', 'addkey'),
) )

View File

@ -50,7 +50,7 @@ class AddForm(ModelForm):
raise forms.ValidationError('Invalid base64 hash') raise forms.ValidationError('Invalid base64 hash')
return data return data
def index(request): def addkey(request):
if request.method == 'POST': if request.method == 'POST':
form = AddForm(request.POST) form = AddForm(request.POST)
if form.is_valid(): if form.is_valid():