小问题
from django.utils.encoding import python_2_unicode_compatiblefrom six import python_2_unicode_compatible#!/bin/sh
sed -i 's#from django.utils.encoding import python_2_unicode_compatible#from six import python_2_unicode_compatible#' /usr/local/lib/python3.7/site-packages/aldryn_categories/models.py &&
sed -i 's#from django.utils.encoding import force_text, python_2_unicode_compatible#from django.utils.encoding import force_text#' /usr/local/lib/python3.7/site-packages/aldryn_newsblog/models.py &&
sed -i '/from django.utils.encoding import force_text/afrom six import python_2_unicode_compatible' /usr/local/lib/python3.7/site-packages/aldryn_newsblog/models.py &&
sed -i 's#from six import python_2_unicode_compatible/#from six import python_2_unicode_compatible#' /usr/local/lib/python3.7/site-packages/aldryn_newsblog/models.py &&
sed -i 's#from django.utils.encoding import force_text, python_2_unicode_compatible#from django.utils.encoding import force_text#' /usr/local/lib/python3.7/site-packages/aldryn_people/models.py &&
sed -i '/from django.utils.encoding import force_text/afrom six import python_2_unicode_compatible' /usr/local/lib/python3.7/site-packages/aldryn_people/models.py &&
sed -i 's#from django.utils.encoding import python_2_unicode_compatible#from six import python_2_unicode_compatible#' /usr/local/lib/python3.7/site-packages/aldryn_newsblog/cms_appconfig.py最后更新于