From 20bbe28829de00f7c665744f86cc24d7156cb18c Mon Sep 17 00:00:00 2001 From: avl Date: Mon, 18 May 2009 14:49:37 +0300 Subject: [PATCH] user search ability --- ipf/auth/models/User.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipf/auth/models/User.php b/ipf/auth/models/User.php index 5c32cac..5dfea91 100644 --- a/ipf/auth/models/User.php +++ b/ipf/auth/models/User.php @@ -4,6 +4,8 @@ class AdminUser extends IPF_Admin_Model{ public function list_display(){return array('username', 'email', 'is_active', 'is_staff', 'is_superuser', 'created_at');} public function fields(){return array('username','password','email', 'first_name', 'last_name', 'is_active', 'is_staff', 'is_superuser');} + function _searchFields(){return array('username', 'email');} + protected function _setupForm($form){ $form->fields['username']->help_text = 'Required. 32 characters or less. Alphanumeric characters only (letters, digits and underscores).'; $form->fields['password']->help_text = "Use '[algo]$[salt]$[hexdigest]' or use the change password form."; -- 2.49.0