summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-10-11 22:15:09 +0200
committerLeif Johansson <leifj@sunet.se>2011-10-11 22:15:09 +0200
commit4be7af236045e9479ae76a40ca606b26426d9153 (patch)
treeb952c4baa17f2012c34caef25ee83341ed0491b8 /src/meetingtools/apps
parent190752500b7e7741c12efad8aa4cd9dfc6e3a550 (diff)
avoid caching forms
Diffstat (limited to 'src/meetingtools/apps')
-rw-r--r--src/meetingtools/apps/room/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py
index 11eca02..35c295d 100644
--- a/src/meetingtools/apps/room/views.py
+++ b/src/meetingtools/apps/room/views.py
@@ -26,7 +26,7 @@ from meetingtools.ac.api import ACPClient
from tagging.models import Tag, TaggedItem
import random, string
from django.utils.feedgenerator import rfc3339_date
-from django.views.decorators.cache import cache_control
+from django.views.decorators.cache import cache_control, never_cache
def _acc_for_user(user):
(local,domain) = user.username.split('@')
@@ -187,8 +187,8 @@ def _update_room(request, room, form=None):
return room
+@never_cache
@login_required
-@cache_control(no_cache=True)
def create(request):
acc = _acc_for_user(request.user)
my_meetings_sco_id = _user_meeting_folder(request,acc)
@@ -212,8 +212,8 @@ def create(request):
return respond_to(request,{'text/html':'apps/room/create.html'},{'form':form,'formtitle': title,'cancelname':'Cancel','submitname':'%s Room' % what})
+@never_cache
@login_required
-@cache_control(no_cache=True)
def update(request,id):
room = get_object_or_404(Room,pk=id)
acc = room.acc