Monkey patch to work around Django #13843