Commits

James Bennett  committed 58eef83

Fixed #98: Allow searching over both first and last name in the admin.

  • Participants
  • Parent commits 390bc0c

Comments (0)

Files changed (1)

File registration/admin.py

     actions = ['activate_users', 'resend_activation_email']
     list_display = ('user', 'activation_key_expired')
     raw_id_fields = ['user']
-    search_fields = ('user__username', 'user__first_name')
+    search_fields = ('user__username', 'user__first_name', 'user__last_name')
 
     def activate_users(self, request, queryset):
         """