Typo
authorEric Mc Sween <eric.mcsween@gmail.com>
Mon, 13 Dec 2010 19:31:21 +0000 (14:31 -0500)
committerEric Mc Sween <eric.mcsween@gmail.com>
Mon, 13 Dec 2010 19:31:21 +0000 (14:31 -0500)
auf_savoirs_en_partage/chercheurs/middleware.py

index 160cd8f..c9975cf 100644 (file)
@@ -8,7 +8,7 @@ class LazyChercheur(object):
             if request.user.is_authenticated():
                 try:
                     request._cached_chercheur = request.user.personne.chercheur
-                except (Personne.DoesNotExist, ChercheurDoesNotExist):
+                except (Personne.DoesNotExist, Chercheur.DoesNotExist):
                     pass
         return request._cached_chercheur