mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #23919 -- Removed encoding preambles and future imports
This commit is contained in:
parent
397b3705c5
commit
d7b9aaa366
831 changed files with 6 additions and 2066 deletions
|
@ -111,7 +111,6 @@ The ``ContentFile`` class
|
|||
but unlike :class:`~django.core.files.File` it operates on string content
|
||||
(bytes also supported), rather than an actual file. For example::
|
||||
|
||||
from __future__ import unicode_literals
|
||||
from django.core.files.base import ContentFile
|
||||
|
||||
f1 = ContentFile("esta sentencia está en español")
|
||||
|
|
|
@ -310,9 +310,6 @@ class in the migration file, and just pass it to ``RunPython``. Here's an
|
|||
example of using ``RunPython`` to create some initial objects on a ``Country``
|
||||
model::
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
def forwards_func(apps, schema_editor):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue