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:
parent
8c52722996
commit
60ba81d91c
@ -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'),
|
||||||
)
|
)
|
||||||
|
@ -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():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user