summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorIsmael Carnales <icarnales@gmail.com>2009-10-31 13:58:24 -0200
committerIsmael Carnales <icarnales@gmail.com>2009-11-09 22:24:49 -0200
commit129255e79ce0d226fa30920a718935b61a847e61 (patch)
treeddad90f044c438ad639d39534e1f8324256a2ca6 /devel
parent1c9d62d5163b6cb24a515027db8db4de7d8c224a (diff)
added login_required to devel views
Diffstat (limited to 'devel')
-rw-r--r--devel/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/devel/views.py b/devel/views.py
index 9ba4f2cb..4d0a0cc2 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -1,5 +1,6 @@
from django import forms
from django.http import HttpResponseRedirect
+from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.shortcuts import render_to_response
from django.template import RequestContext
@@ -13,6 +14,7 @@ from string import ascii_letters, digits
pwletters = ascii_letters + digits
+@login_required
def index(request):
'''the Developer dashboard'''
page_dict = {
@@ -26,6 +28,7 @@ def index(request):
return render_to_response('devel/index.html',
RequestContext(request, page_dict))
+@login_required
def change_notify(request):
maint = User.objects.get(username=request.user.username)
notify = request.POST.get('notify', 'no')
@@ -52,6 +55,7 @@ class ProfileForm(forms.Form):
raise forms.ValidationError('Passwords do not match')
return self.cleaned_data
+@login_required
def change_profile(request):
if request.POST:
form = ProfileForm(request.POST)
@@ -65,6 +69,7 @@ def change_profile(request):
return render_to_response('devel/profile.html',
RequestContext(request, {'form': form}))
+@login_required
def mirrorlist(request):
mirrors = Mirror.objects.all()
return render_to_response('devel/mirrorlist.html',