Parcourir la source

recherche dans les notes des adhésions

Élie Bouttier il y a 8 ans
Parent
commit
06f0397112
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      adhesions/admin.py

+ 1 - 1
adhesions/admin.py

@@ -156,7 +156,7 @@ class AdhesionAdmin(admin.ModelAdmin):
     list_filter = (AdherentTypeFilter,)
     fields = ('id', 'type', 'get_adherent_link', 'notes')
     readonly_fields = ('id', 'type', 'get_adherent_link',)
-    search_fields = ('id',)
+    search_fields = ('id', 'notes',)
     inlines = (ServiceInline,)#PaymentInline,)
 
     def get_id(self, obj):