[PATCH 00/10] Add Django 1.9 support

Stephen Finucane stephen.finucane at intel.com
Mon Jan 11 10:07:49 AEDT 2016


Django 1.9 has been released [1] and we should now support it. Django
1.9 technically works wit the code as it stands, but it does produce
a significant amount of deprecation notices. Resolve all but one of
the deprecation notices and add testing functionality to ensure that
we don't regress. The remaining issues relates to the deprecation of
the 'render_to_response' function. Resolving appears to require
extensive rework and will have to be accomplished in a separate
series.

Per usual, the series also includes a number of separate "cleanup"
patches that help work towards a more maintainable, readable and
secure code base.

[1] https://docs.djangoproject.com/en/1.9/releases/1.9/

Stephen Finucane (10):
  tox: Add django19 targets
  tox: Cleanup file
  views: Split up 'base'
  Move view-related code from utils->views/__init__
  urls: Add url names
  Use URL names in place of Python paths
  urls: Remove reverse by Python path urls
  settings: Add TEMPLATES setting
  settings: Place most-used path first
  models: Resolve SubfieldBase deprecation warnings

 patchwork/models.py                                |  20 ++-
 patchwork/settings/base.py                         |  33 +++-
 patchwork/settings/dev.py                          |  11 +-
 patchwork/templates/patchwork/activation_email.txt |   2 +-
 patchwork/templates/patchwork/bundle.html          |   2 +-
 patchwork/templates/patchwork/bundles.html         |   2 +-
 patchwork/templates/patchwork/filters.html         |   2 +-
 patchwork/templates/patchwork/help/pwclient.html   |   4 +-
 patchwork/templates/patchwork/login.html           |   2 +-
 patchwork/templates/patchwork/mail-settings.html   |   6 +-
 patchwork/templates/patchwork/optin-request.html   |   2 +-
 patchwork/templates/patchwork/optin-request.mail   |   2 +-
 patchwork/templates/patchwork/optin.html           |   6 +-
 patchwork/templates/patchwork/optout-request.html  |   2 +-
 patchwork/templates/patchwork/optout-request.mail  |   2 +-
 patchwork/templates/patchwork/optout.html          |   6 +-
 .../patchwork/patch-change-notification.mail       |   2 +-
 patchwork/templates/patchwork/patch-list.html      |   2 +-
 patchwork/templates/patchwork/patch.html           |   6 +-
 patchwork/templates/patchwork/profile.html         |  18 +-
 patchwork/templates/patchwork/project.html         |   4 +-
 patchwork/templates/patchwork/projects.html        |   2 +-
 patchwork/templates/patchwork/pwclientrc           |   2 +-
 .../templates/patchwork/registration-confirm.html  |   2 +-
 patchwork/templates/patchwork/todo-lists.html      |   2 +-
 .../templates/patchwork/user-link-confirm.html     |   2 +-
 patchwork/templates/patchwork/user-link.html       |   2 +-
 patchwork/templates/patchwork/user-link.mail       |   2 +-
 patchwork/templatetags/person.py                   |   8 +-
 patchwork/tests/test_confirm.py                    |   2 +-
 patchwork/tests/test_list.py                       |  11 +-
 patchwork/tests/test_mail_settings.py              |  35 ++--
 patchwork/tests/test_registration.py               |   2 +-
 patchwork/tests/test_updates.py                    |   3 +-
 patchwork/tests/test_user.py                       |   7 +-
 patchwork/tests/test_xmlrpc.py                     |   6 +-
 patchwork/urls.py                                  | 107 +++++++-----
 patchwork/utils.py                                 | 148 +----------------
 patchwork/views/__init__.py                        | 183 ++++++++++++++++++++-
 patchwork/views/api.py                             |  54 ++++++
 patchwork/views/base.py                            | 138 ----------------
 patchwork/views/bundle.py                          |  15 +-
 patchwork/views/help.py                            |  43 +++++
 patchwork/views/patch.py                           |   2 +-
 patchwork/views/project.py                         |  16 ++
 patchwork/views/pwclient.py                        |  50 ++++++
 patchwork/views/user.py                            |   2 +-
 patchwork/views/xmlrpc.py                          |   6 +-
 templates/base.html                                |  20 +--
 tox.ini                                            |  12 +-
 50 files changed, 561 insertions(+), 459 deletions(-)
 create mode 100644 patchwork/views/api.py
 delete mode 100644 patchwork/views/base.py
 create mode 100644 patchwork/views/help.py
 create mode 100644 patchwork/views/pwclient.py

-- 
2.0.0



More information about the Patchwork mailing list