<s> from django_sysadmin . proftpd import models <EOL> from django . contrib import admin <EOL> def setactive ( modeladmin , request , queryset ) : <EOL> queryset . update ( active = True ) <EOL> setactive . short_description = "<STR_LIT>" <EOL> def setinactive ( modeladmin , request , queryset ) : <EOL> queryset . update ( active = False ) <EOL> setinactive . short_description = "<STR_LIT>" <EOL> class FTPUserAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT:username>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> list_filter = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> search_fields = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> actions = [ setactive , setinactive ] <EOL> admin . site . register ( models . FTPUser , FTPUserAdmin ) </s>
