Merge branch 'dev' of ssh://git.auf/auf_rh_dae into dev
authordavin baragiotta <davin.baragiotta@u-db.(none)>
Fri, 8 Apr 2011 20:20:27 +0000 (16:20 -0400)
committerDavin BARAGIOTTA <davin.baragiotta@auf.org>
Fri, 8 Apr 2011 20:20:27 +0000 (16:20 -0400)
project/dae/views.py

index fc3ecd1..ac96e8c 100644 (file)
@@ -78,7 +78,7 @@ def postes_liste(request):
     vars['postes'] = []
 
     for p in dae.Poste.objects.all().order_by('-date_creation'):
-        versions =  Version.objects.get_for_object(d)
+        versions =  Version.objects.get_for_object(p)
         if len(versions) > 0:
             premiere_revision = versions[0].revision
         else: