mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #24215 -- Prevented pending lookup pollution by abstract models.
This commit is contained in:
parent
e519ee1d35
commit
9239f1dda7
3 changed files with 66 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue