Première version en Python-Django.
[auf_paf.git] / paf / views.py
old mode 100644 (file)
new mode 100755 (executable)
index 0d1c841..7a0e623
@@ -45,11 +45,11 @@ def password_change_done(request):
 def admin_home(request):
     if request.user.is_superuser:
         return admin.site.index(request)
-    return HttpResponseRedirect('/')
+    return HttpResponseRedirect('/paf-v1/')
 
 def change_student(request, id):
     user = request.user
     if user.is_superuser:
         return StudentAdmin(Student, admin.site).change_view(request, id)
     else:
-        return HttpResponse("Change student: user = " + user.username)
\ No newline at end of file
+        return HttpResponse("Change student: user = " + user.username)