From 894bc57408f6e105f8d630d9f39890726f14f234 Mon Sep 17 00:00:00 2001
From: RheingoldRiver <18037011+RheingoldRiver@users.noreply.github.com>
Date: Sun, 22 Nov 2020 14:15:26 -0600
Subject: [PATCH] Add move_subpages, ignore_warnings to page.move

---
 mwclient/page.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/mwclient/page.py b/mwclient/page.py
index d83896c..1475b7c 100644
--- a/mwclient/page.py
+++ b/mwclient/page.py
@@ -284,7 +284,8 @@ class Page(object):
             return
         self.append('')
 
-    def move(self, new_title, reason='', move_talk=True, no_redirect=False):
+    def move(self, new_title, reason='', move_talk=True, no_redirect=False,
+             move_subpages=False, ignore_warnings=False):
         """Move (rename) page to new_title.
 
         If user account is an administrator, specify no_redirect as True to not
@@ -305,6 +306,10 @@ class Page(object):
             data['movetalk'] = '1'
         if no_redirect:
             data['noredirect'] = '1'
+        if move_subpages:
+            data['movesubpages'] = '1'
+        if ignore_warnings:
+            data['ignorewarnings'] = '1'
         result = self.site.post('move', ('from', self.name), to=new_title,
                                 token=self.get_token('move'), reason=reason, **data)
         return result['move']
-- 
GitLab