diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/migration-operations.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt index a5a74d3be0..8dbebcccc6 100644 --- a/docs/ref/migration-operations.txt +++ b/docs/ref/migration-operations.txt @@ -280,7 +280,9 @@ example of using ``RunPython`` to create some initial objects on a ``Country`` model:: # -*- coding: utf-8 -*- - from django.db import models, migrations + from __future__ import unicode_literals + + from django.db import migrations, models def forwards_func(apps, schema_editor): # We get the model from the versioned app registry; |
