def activate_users(self, request, queryset):
n = <NUM_LIT:0><EOL>for user in queryset:<EOL><INDENT>if not user.is_active:<EOL><INDENT>user.activate()<EOL>n += <NUM_LIT:1><EOL><DEDENT><DEDENT>self.message_user(<EOL>request,<EOL>_('<STR_LIT>') %<EOL>{'<STR_LIT:count>': n, '<STR_LIT>': model_ngettext(self.opts, n)},  messages.SUCCESS)<EOL>
Activates the selected users, if they are not already
activated.