From 720ff740e70e649a97fcf0232fec132569a52c7e Mon Sep 17 00:00:00 2001 From: Alex Hill Date: Tue, 3 Mar 2015 16:43:56 +0800 Subject: 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. --- tests/model_fields/models.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'tests/model_fields/models.py') 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 -- cgit v1.3