]> git.parisson.com Git - teleforma.git/commitdiff
add last_name
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 21 Jul 2014 15:53:11 +0000 (17:53 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 21 Jul 2014 15:53:11 +0000 (17:53 +0200)
teleforma/exam/admin.py

index 436dc088a09d02bf95128c0fdf00fe4e64fc6d3b..3099bf43b19c610c7301aea3d21f126791c7c254 100644 (file)
@@ -17,7 +17,7 @@ class QuotaInline(admin.StackedInline):
 class ScriptAdmin(admin.ModelAdmin):
     model = Script
     ordering = ['-date_added']
-    search_fields = ['user__username', 'course__title']
+    search_fields = ['user__username', 'user__last_name', 'course__title']
     readonly_fields = ('date_added','uuid','box_uuid','sha1','mime_type')
     # exclude = ['options']
     # inlines = [ScriptPageInline]