diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2013-06-07 15:36:31 +0100 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2013-06-07 15:36:31 +0100 |
| commit | c7aa4b5338e6bcf62f66eb53b309aa3a69b9a55d (patch) | |
| tree | d21ecd10098fca7e4a3c12852e9596c19db155ad /tests | |
| parent | 4492f06408828355a827824c805fd631a3b59d1b (diff) | |
Field encoding
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_writer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/migrations/test_writer.py b/tests/migrations/test_writer.py index 8c1753e794..0581d6a4bd 100644 --- a/tests/migrations/test_writer.py +++ b/tests/migrations/test_writer.py @@ -2,7 +2,7 @@ import datetime from django.test import TransactionTestCase from django.db.migrations.writer import MigrationWriter -from django.db import migrations +from django.db import models, migrations class WriterTests(TransactionTestCase): @@ -56,6 +56,7 @@ class WriterTests(TransactionTestCase): migration = type("Migration", (migrations.Migration,), { "operations": [ migrations.DeleteModel("MyModel"), + migrations.AddField("OtherModel", "field_name", models.DateTimeField(default=datetime.datetime.utcnow)) ], "dependencies": [("testapp", "some_other_one")], }) |
