]> git.andy128k.dev Git - ipf.git/commitdiff
user search ability
authoravl <alex.litovchenko@gmail.com>
Mon, 18 May 2009 11:49:37 +0000 (14:49 +0300)
committeravl <alex.litovchenko@gmail.com>
Mon, 18 May 2009 11:49:37 +0000 (14:49 +0300)
ipf/auth/models/User.php

index 5c32cac831e5a404f83ae0ac260a1520f9654094..5dfea91d5843032246d747cf98c82097551fd1b1 100644 (file)
@@ -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 <a href=\"password/\">change password form</a>.";