mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-08 22:07:55 +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 *
|
||||
|
||||
urlpatterns = patterns('web.postkey.views',
|
||||
(r'^$', 'index'),
|
||||
(r'^$', 'addkey'),
|
||||
)
|
||||
|
@ -50,7 +50,7 @@ class AddForm(ModelForm):
|
||||
raise forms.ValidationError('Invalid base64 hash')
|
||||
return data
|
||||
|
||||
def index(request):
|
||||
def addkey(request):
|
||||
if request.method == 'POST':
|
||||
form = AddForm(request.POST)
|
||||
if form.is_valid():
|
||||
|
Loading…
Reference in New Issue
Block a user