mirror of
https://github.com/modoboa/modoboa-postfix-autoreply.git
synced 2026-04-25 08:35:53 +03:00
[PR #52] [MERGED] Upgrade Django (Django-1.10 no longer supported) #67
Labels
No labels
bug
bug
enhancement
enhancement
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-postfix-autoreply-modoboa#67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/modoboa/modoboa-postfix-autoreply/pull/52
Author: @ghost
Created: 12/19/2017
Status: ✅ Merged
Merged: 12/21/2017
Merged by: @tonioo
Base:
master← Head:upgrade-django📝 Commits (4)
7e23b86standardise travis.yml across modoboa extensions0b9badaupdates for django 1.11 support7e8fd30update test_project filesa8929c1smart_str should be smart_text, otherwise tests break on python 2📊 Changes
10 files changed (+181 additions, -50 deletions)
View changed files
📝
.travis.yml(+33 -16)📝
modoboa_postfix_autoreply/management/commands/autoreply.py(+2 -2)📝
modoboa_postfix_autoreply/migrations/0001_initial.py(+2 -2)📝
modoboa_postfix_autoreply/models.py(+2 -2)📝
modoboa_postfix_autoreply/tests.py(+3 -1)➕
test-requirements.txt(+2 -0)📝
test_project/manage.py(+18 -3)📝
test_project/test_project/settings.py(+110 -21)📝
test_project/test_project/urls.py(+3 -1)📝
test_project/test_project/wsgi.py(+6 -2)📄 Description
Django 1.10 is now no longer supported, this PR upgrades modoboa to Django 1.11 (the last version of Django to support Python 2). This depends on modoboa/modoboa#1333
I've split this into several patches to make it easier to follow:
7e23b86: make all the travis.yml settings the same across modoboa projects.0b9bada: updates for django 1.11 supporton_delete will become a required parameter for ForeignKey() set it to the current default CASCADE
reverse and reverse_lazy have moved to django.urls
MIDDLEWARE_CLASSES is replaced by MIDDLEWARE
7e8fd30: updated test_project, synced with a fresh deployment using Django 1.11.8 and updated settings.py so the tests environment matches a fresh deployment.a8929c1: smart_str should be smart_text, otherwise tests break on python 2As this depends on modoboa/modoboa#1333 tests on travis will fail until it's merged, I've created a special branch (with altered travis.yml) to prove the tests work upgrade-django-TESTS
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.