]> git.parisson.com Git - teleforma.git/commitdiff
add search field to docs
authoryomguy <yomguy@parisson.com>
Mon, 18 Feb 2013 17:41:17 +0000 (18:41 +0100)
committeryomguy <yomguy@parisson.com>
Mon, 18 Feb 2013 17:41:17 +0000 (18:41 +0100)
teleforma/admin.py

index 10ca0ea2ea65a662b697e55f0b44de71be13ce18..efb3526e33aa456e62ebc294733f8ef6e6235354 100644 (file)
@@ -53,6 +53,7 @@ class CourseDomainAdmin(admin.ModelAdmin):
 class DocumentAdmin(admin.ModelAdmin):
     exclude = ['readers']
     filter_horizontal = ['course_type']
+    search_fields = ['title']
 
 class MediaAdmin(admin.ModelAdmin):
     exclude = ['readers']