diff options
author | Alex Hill <alex@hill.net.au> | 2015-03-03 16:43:56 +0800 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-03-25 16:48:17 -0400 |
commit | 720ff740e70e649a97fcf0232fec132569a52c7e (patch) | |
tree | 688533ec18f1d970b8c7671ef94be83b67720b80 /tests/model_fields/models.py | |
parent | 0f6f80c2e7736ec4e2aa40287fe8c37ffff0a783 (diff) | |
download | django-720ff740e70e649a97fcf0232fec132569a52c7e.tar.gz |
Fixed #24215 -- Refactored lazy model operations
This adds a new method, Apps.lazy_model_operation(), and a helper function,
lazy_related_operation(), which together supersede add_lazy_relation() and
make lazy model operations the responsibility of the App registry. This
system no longer uses the class_prepared signal.
Diffstat (limited to 'tests/model_fields/models.py')
-rw-r--r-- | tests/model_fields/models.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index 4208454b68..cca2b463a0 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -373,14 +373,3 @@ class PrimaryKeyUUIDModel(models.Model): class RelatedToUUIDModel(models.Model): uuid_fk = models.ForeignKey('PrimaryKeyUUIDModel') - - -############################################################################### - -# See ticket #24215. -class AbstractForeignFieldsModel(models.Model): - fk = models.ForeignKey('missing.FK') - m2m = models.ManyToManyField('missing.M2M', through='missing.Through') - - class Meta: - abstract = True |