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

2
web/postkey/views.py

@ -50,7 +50,7 @@ class AddForm(ModelForm): @@ -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…
Cancel
Save