]> git.parisson.com Git - teleforma.git/commitdiff
again
authoryomguy <yomguy@parisson.com>
Tue, 15 Jan 2013 11:12:17 +0000 (12:12 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 15 Jan 2013 11:12:17 +0000 (12:12 +0100)
teleforma/views/core.py

index 505f4183feb87d4618f8d3d8ae4ae9043edca832..c548b48eaa35179fa80309729fb75e713fe9b697 100644 (file)
@@ -172,7 +172,7 @@ def get_periods(user):
             periods = student.period.all()
 
     elif user.is_superuser or user.if_staff:
-        periods = student.period.all()
+        periods = Period.objects.all()
 
     return periods