]> git.parisson.com Git - teleforma.git/commitdiff
add filters
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 12 May 2015 00:14:17 +0000 (02:14 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 12 May 2015 00:14:17 +0000 (02:14 +0200)
teleforma/admin.py
teleforma/models/crfpa.py

index eb57c8ad735b5eeca28ed574c878a52d3b0d73b7..e2d5ec4748bdf59d3a0124ea106ac9dd91106c30 100644 (file)
@@ -67,7 +67,8 @@ class StudentAdmin(admin.ModelAdmin):
                     'trainings', 'iej',
                     'procedure', 'written_speciality', 'oral_speciality',
                     'oral_1', 'oral_2']
-    list_display = ['student_name', 'total_payments', 'total_fees', 'balance']
+    list_display = ['student_name', 'date_subscribed', 'platform_only',
+                    'total_payments', 'total_fees', 'balance']
     actions = ['export_xls']
 
     def student_name(self, instance):
index 98f6e95ae33041d325770f4605927e11b076b0f6..55f2707055f7a4975cced17fa17d91aefb3f73e0 100644 (file)
@@ -170,7 +170,7 @@ class Student(Model):
         db_table = app_label + '_' + 'student'
         verbose_name = _('Student')
         verbose_name_plural = _('Students')
-        ordering = ['user__last_name']
+        ordering = ['user__last_name', '-date_subscribed']
 
 
 class Profile(models.Model):