Browse Source

Add username in autocomplete field for members

Fabs 10 years ago
parent
commit
915fdd41c5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      coin/members/autocomplete_light_registry.py

+ 2 - 1
coin/members/autocomplete_light_registry.py

@@ -8,7 +8,8 @@ from models import Member
 autocomplete_light.register(Member,
                             # Just like in ModelAdmin.search_fields
                             search_fields=[
-                                '^first_name', 'last_name', 'organization_name'],
+                                '^first_name', 'last_name', 'organization_name',
+                                'username'],
                             # This will actually data-minimum-characters which
                             # will set widget.autocomplete.minimumCharacters.
                             autocomplete_js_attributes={