summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-04-05 23:29:54 +0200
committerGuillaume Seguin <guillaume@segu.in>2008-04-05 23:29:54 +0200
commit7dbacf9f1f73dd806a20a0f5cf7dbebae6b5b27e (patch)
treebc0fbffe99008973dc4c10353acda5ac9abfdaac
parent5326dc2d0a16dd7990b5608bb6fcfdf25543a94c (diff)
downloadmarks-7dbacf9f1f73dd806a20a0f5cf7dbebae6b5b27e.tar.gz
marks-7dbacf9f1f73dd806a20a0f5cf7dbebae6b5b27e.tar.bz2
* Cleanup of reset_view method
-rw-r--r--main/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/views.py b/main/views.py
index 7ea5565..50d7013 100644
--- a/main/views.py
+++ b/main/views.py
@@ -28,6 +28,6 @@ def home_view (request):
def reset_view (request):
'''Free user data'''
- if "user_data" in request.session:
+ if get_user_data (request):
del request.session["user_data"]
return redirect (request, "/", "Session was successfully reset.")