From 4be7af236045e9479ae76a40ca606b26426d9153 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 11 Oct 2011 22:15:09 +0200 Subject: avoid caching forms --- src/meetingtools/apps/room/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/meetingtools/apps/room') 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 -- cgit v1.1