-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Django 2.2 compatability (#1956)
* Try and fix admin link error * Try and fix admin link error mk2 * Try and fix admin link error mk2 * Try and fix admin link error mk3 * try and fix the thing * A better registration message * Fix broken admin link thing * Fix broken admin link thing * Fix my bad imports * Fix drag and drop issues * Attempt to fix the related manager error * Some merge updates I think? * Require Treebeard to use its manager with displayable models (Althon sitemap bug) Some merge updates I think? * Undo my treebeard changes * Overshard's S3 speedup * Add REPLY_TO_EMAIL setting * Fix for when we don't have a reply_to * Bump django install requires version * Fixes for django 2.2 * Add messages to installed apps * Fix for the broken sitemaps and link system * Rollback template tags * Fix Token_type errors * Fix allowed_hosts * Refactor keywords_fields to work with Django 2.2 * Take media out of static directory * Fix TokenType * Fix line length issues * Add removed TokenType import * Fix password reset test * Backwards compat changes to mezzanine tags * Fixes for next_url * Fix setup.py requirements * Remove future imports from accounts * Remove future imports from bin * Remove future imports from blog * Fix imports for rss and tumblr import commands * Add additional breadcrumb classes * Use 2.0 compatible urls for blog pages * Remove future imports for boot * Remove future imports for conf * Remove future imports for core * 2.0 compat urls for core * Fix metaclass for core models * Fix future imports for auth_backends.py * Remove additional jquery ui from core admin (it's loaded in the base instead) * Remove future imports from forms * Remove future imports from galleries * Remove future imports from generic * 2.0 compatible urls for generic * Remove future imports from pages * 2.0 compatible urls for pages * version bump nestedSortable * Add additional classes for page menus * version bump bootstrap * fix ajax_csrf and keywords fields * Fix token_type * Fix page tree sortable * Revert "version bump bootstrap" This reverts commit 3eb8157 * Bump jquery file versions * Fix indentation * Add localhost and 127.0.01 to ALLOWED_HOSTS * Fix blog url * Update tox to use new python and django * Revert "Move jQuery setup for ajax/csrf outside of document.ready handler." This reverts commit 543c437 * Rollback version number * Changes based on code review * Changes based on code review * Fix URLs for Python 3.5 * Tox test py3.5 * Update travis * Update travis * Fix adding link inlines. Mezzanine issue #1634 * Style fix for M2M widget * Revert menu changes made in August * Update tox to test against the fermor fork rather than the master * Make widget scripts load in correct order in dj2.2 Make all admin widget which rely on window.jQuery load jquery.init.js and all that rely on window.django.jQuery also load jquery.js as per 2.2 upgrade instructions * Disable required on TinyMceWidget textareas, allowing forms with required fields to submit on dj2.2 TinyMCE does not put content back into the <textarea>, so we want to allow it to submit when empty. Currently a form with a required field with a TinyMceWidget would be impossible to submit and no error would show since the textarea has been hidden. * Roll back page_tree based review * Django required version < 3 * Version bump of nestedSortable * https://stackoverflow.com/questions/54336787 * caracteres extraños en plantilla * PEP8 Fix * Limit admin thumb images to 100% * Remove fermor specific style overrides * Styles for page-model and readonly textareas * Rename admin CSS class "field-box" to "fieldBox". (This addresses a change made in Django 2.1 to fix Django bug #29248.) * Updated formfield_for_dbfield() calls to include request argument * PEP8 (black) formatting * Fix __admin_media_prefix__ pointing to nonexistent resource It breaks sites on production that use the ManifestStaticFilesStorage. For such cases, Django provides the "get_static_prefix" template tag. But it's an incitement to bypass the storage mechanism to produce the URL to cache (by appending a hash in this case). And I don't understand how it could work with more "exotic" yet valid backends relying on cloud storage or CDNs, where the source file path and the URL path won't match one to one. I advise against this usage and call for its deprecation. From: bors-ltd@88aa6c9 Related to: #1895 Co-authored-by: Frankie Robertson <[email protected]> Co-authored-by: Marcos Sánchez Provencio <[email protected]> Co-authored-by: zriv <[email protected]> Co-authored-by: Tuk Bredsdorff <[email protected]> Co-authored-by: Peter Dermott <peter.dermott@:gmail.com> Co-authored-by: Diego Rabatone Oliveira <[email protected]>
- Loading branch information
1 parent
7624b8f
commit db62ee5
Showing
150 changed files
with
41,135 additions
and
751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
|
||
__version__ = "4.3.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#!/usr/bin/env python | ||
from __future__ import unicode_literals | ||
|
||
import atexit | ||
import os | ||
import shutil | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
from copy import deepcopy | ||
|
||
from django.contrib import admin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
from django import forms | ||
|
||
from mezzanine.blog.models import BlogPost | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
from datetime import datetime | ||
import json | ||
import time | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.