Refs #24215 -- Prevented pending lookup pollution by abstract models.

This commit is contained in:
Simon Charette 2015-02-12 01:28:24 -05:00
parent e519ee1d35
commit 9239f1dda7
3 changed files with 66 additions and 20 deletions

View file

@ -367,3 +367,14 @@ class NullableUUIDModel(models.Model):
class PrimaryKeyUUIDModel(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4)
###############################################################################
# See ticket #24215.
class AbstractForeignFieldsModel(models.Model):
fk = models.ForeignKey('missing.FK')
m2m = models.ManyToManyField('missing.M2M', through='missing.Through')
class Meta:
abstract = True