Browse Source

postkey: rename "index" to "addkey"

pull/1/head
Hidden Z 14 years ago
parent
commit
60ba81d91c
  1. 2
      web/postkey/urls.py
  2. 2
      web/postkey/views.py

2
web/postkey/urls.py

@ -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'),
) )

2
web/postkey/views.py

@ -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…
Cancel
Save