summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-02-06 15:56:16 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-02-06 15:56:16 (GMT)
commit2dff16b5856fdc98acb8d0a9ddbc281e116456a4 (patch)
tree7aa843762694c20e84767155603910f2563e85c1
parentf0c84f6bda1793d9b784bb4a497d0492edfef839 (diff)
downloadpolynum-blackboard-2dff16b5856fdc98acb8d0a9ddbc281e116456a4.zip
polynum-blackboard-2dff16b5856fdc98acb8d0a9ddbc281e116456a4.tar.gz
polynum-blackboard-2dff16b5856fdc98acb8d0a9ddbc281e116456a4.tar.bz2
corrige l'extraction du sponsor lors de la création d'un nouveau cours
-rw-r--r--polynum_blackboard/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/polynum_blackboard/views.py b/polynum_blackboard/views.py
index 2c2cd89..8330703 100644
--- a/polynum_blackboard/views.py
+++ b/polynum_blackboard/views.py
@@ -60,9 +60,9 @@ def create_course(request):
try:
userID = request.user.username
mandatary = None
- if request.sponsor_username():
+ if document.sponsor_username():
mandatary = userID
- userID = request.sponsor_username()
+ userID = document.sponsor_username()
ok, result = conn.create_course(course_code,
course_name,
form.cleaned_data['category'],