|
19 | 19 | from django.utils.translation import ugettext_lazy as _
|
20 | 20 | from django.utils.timezone import get_default_timezone, utc, FixedOffset
|
21 | 21 |
|
22 |
| -from custom_managers import models as custom_manager_models |
23 | 22 | import custom_migration_operations.operations
|
24 | 23 | import custom_migration_operations.more_operations
|
25 | 24 |
|
| 25 | +from .models import FoodQuerySet, FoodManager |
| 26 | + |
26 | 27 |
|
27 | 28 | class TestModel1(object):
|
28 | 29 | def upload_to(self):
|
@@ -356,8 +357,8 @@ def deconstruct(self):
|
356 | 357 | def test_serialize_managers(self):
|
357 | 358 | self.assertSerializedEqual(models.Manager())
|
358 | 359 | self.assertSerializedResultEqual(
|
359 |
| - custom_manager_models.CustomQuerySet.as_manager(), |
360 |
| - ('custom_managers.models.CustomQuerySet.as_manager()', {'import custom_managers.models'}) |
| 360 | + FoodQuerySet.as_manager(), |
| 361 | + ('migrations.models.FoodQuerySet.as_manager()', {'import migrations.models'}) |
361 | 362 | )
|
362 |
| - self.assertSerializedEqual(custom_manager_models.DeconstructibleCustomManager('a', 'b')) |
363 |
| - self.assertSerializedEqual(custom_manager_models.DeconstructibleCustomManager('x', 'y', c=3, d=4)) |
| 363 | + self.assertSerializedEqual(FoodManager('a', 'b')) |
| 364 | + self.assertSerializedEqual(FoodManager('x', 'y', c=3, d=4)) |
0 commit comments