Commits

Waldemar Kornewald committed ed3306d

changed default user search field to username in admin

  • Participants
  • Parent commits 535feb9

Comments (0)

Files changed (1)

djangotoolbox/admin.py

 class CustomUserAdmin(UserAdmin):
     fieldsets = None
     form = UserForm
+    search_fields = ('=username',)
 
 admin.site.unregister(User)
 admin.site.unregister(Group)