]> git.parisson.com Git - teleforma.git/commitdiff
Exact script search by exact username https://trackers.pilotsystems.net/prebarreau...
authorYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 16 Dec 2025 08:54:21 +0000 (09:54 +0100)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 16 Dec 2025 08:54:21 +0000 (09:54 +0100)
teleforma/exam/admin.py

index 071a71ba926c4bfaf4d8eeba3678fe0055c21eae..b52fccd5fa94cfe3f9a3140d7edc1da26f99bc52 100644 (file)
@@ -41,7 +41,7 @@ class QuotaInline(admin.StackedInline):
 class ScriptAdmin(admin.ModelAdmin):
     model = Script
     ordering = ['-date_added']
-    search_fields = ['author__username', 'author__last_name', 'corrector__username',
+    search_fields = ['=author__username', 'author__last_name', '=corrector__username',
                     'corrector__last_name', 'course__title', 'course__code']
     readonly_fields = ['date_added','uuid','box_uuid','sha1','mime_type']
     autocomplete_fields = ['author']