diff options
author | Leif Johansson <leifj@sunet.se> | 2011-10-11 22:12:22 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-10-11 22:12:22 +0200 |
commit | 190752500b7e7741c12efad8aa4cd9dfc6e3a550 (patch) | |
tree | 08c4759fc18beb0e58d93308e47864508a3fa99a /src/meetingtools/apps/room | |
parent | ceb87841029d9da455d17f3d2da10e006aaf266f (diff) |
avoid caching forms
Diffstat (limited to 'src/meetingtools/apps/room')
-rw-r--r-- | src/meetingtools/apps/room/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py index 51abb88..11eca02 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -26,6 +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 def _acc_for_user(user): (local,domain) = user.username.split('@') @@ -187,6 +188,7 @@ def _update_room(request, room, form=None): return room @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) @@ -211,6 +213,7 @@ def create(request): return respond_to(request,{'text/html':'apps/room/create.html'},{'form':form,'formtitle': title,'cancelname':'Cancel','submitname':'%s Room' % what}) @login_required +@cache_control(no_cache=True) def update(request,id): room = get_object_or_404(Room,pk=id) acc = room.acc |