summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-05-15 19:41:55 +0200
committerClaude Paroz <claude@2xlibre.net>2014-05-15 20:01:31 +0200
commite8a7436941f56d27b0096c93ef4ea1da13a5b95f (patch)
tree662d34783acc05a7f18e80bb44873696b7741128 /docs
parentc5185172a6645714a1b9df53728c530e2d0d2f2e (diff)
[1.7.x] Harmonized some PEP 0263 coding preambles
Backport of e520a73ee from master.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/migration-operations.txt2
-rw-r--r--docs/topics/migrations.txt4
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt
index 9c7a5d497e..40ef3849ac 100644
--- a/docs/ref/migration-operations.txt
+++ b/docs/ref/migration-operations.txt
@@ -192,7 +192,7 @@ 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::
- # encoding: utf8
+ # -*- coding: utf-8 -*-
from django.db import models, migrations
def forwards_func(apps, schema_editor):
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt
index 4f75fcff56..8a5359fec4 100644
--- a/docs/topics/migrations.txt
+++ b/docs/topics/migrations.txt
@@ -338,7 +338,7 @@ the file in the right place, suggest a name, and add dependencies for you)::
Then, open up the file; it should look something like this::
- # encoding: utf8
+ # -*- coding: utf-8 -*-
from django.db import models, migrations
class Migration(migrations.Migration):
@@ -365,7 +365,7 @@ combined values of ``first_name`` and ``last_name`` (we've come to our senses
and realized that not everyone has first and last names). All we
need to do is use the historical model and iterate over the rows::
- # encoding: utf8
+ # -*- coding: utf-8 -*-
from django.db import models, migrations
def combine_names(apps, schema_editor):