Ticket #24950: 24950.diff

File 24950.diff, 1.3 KB (added by Tim Graham, 9 years ago)
  • django/conf/app_template/models.py

    diff --git a/django/conf/app_template/models.py b/django/conf/app_template/models.py
    index 71a8362..7a54b3e 100644
    a b  
    1 from django.db import models
     1{{ unicode_literals }}from django.db import models
    22
    33# Create your models here.
  • django/core/management/templates.py

    diff --git a/django/core/management/templates.py b/django/core/management/templates.py
    index eb5340d..cea5e09 100644
    a b import django  
    1414from django.core.management.base import BaseCommand, CommandError
    1515from django.core.management.utils import handle_extensions
    1616from django.template import Context, Engine
    17 from django.utils import archive
     17from django.utils import archive, six
    1818from django.utils.six.moves.urllib.request import urlretrieve
    1919from django.utils.version import get_docs_version
    2020
    class TemplateCommand(BaseCommand):  
    104104            base_directory: top_dir,
    105105            'docs_version': get_docs_version(),
    106106            'django_version': django.__version__,
     107            'unicode_literals': '' if six.PY3 else 'from __future__ import unicode_literals\n\n'
    107108        }), autoescape=False)
    108109
    109110        # Setup a stub settings environment for template rendering
Back to Top