summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-04-07 01:04:24 +0200
committerGuillaume Seguin <guillaume@segu.in>2008-04-07 01:04:24 +0200
commit927e49824223271ffc43ef28350f5ed8ca9e59f6 (patch)
treef7032c6e32254fc898a96b381770dbb243744cbb
parent6bddce7c0958b2d56cb102fa2fde8889a554ed9f (diff)
downloadmarks-927e49824223271ffc43ef28350f5ed8ca9e59f6.tar.gz
marks-927e49824223271ffc43ef28350f5ed8ca9e59f6.tar.bz2
* Update reset_view to use reset_user_data helper
-rw-r--r--main/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/views.py b/main/views.py
index 50d7013..40a2e0e 100644
--- a/main/views.py
+++ b/main/views.py
@@ -18,7 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
'''
from marks.main.shared import redirect, render_page, render_template, \
- get_user_data
+ get_user_data, reset_user_data
+from marks.main.forms import AddExaminationForm, AddRatingsForm, AddMarksForm
def home_view (request):
'''Render the main page'''
@@ -28,6 +29,5 @@ def home_view (request):
def reset_view (request):
'''Free user data'''
- if get_user_data (request):
- del request.session["user_data"]
+ reset_user_data (request)
return redirect (request, "/", "Session was successfully reset.")