mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Harmonized some PEP 0263 coding preambles
This commit is contained in:
parent
27aa85246a
commit
e520a73eee
44 changed files with 45 additions and 45 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue