mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #26961 -- Fixed invalid ModelAdmins in tests.
This commit is contained in:
@@ -913,11 +913,16 @@ class ChildOfReferer(ParentWithFK):
|
||||
|
||||
|
||||
# Models for #23431
|
||||
class InlineReferer(models.Model):
|
||||
pass
|
||||
|
||||
|
||||
class ReferencedByInline(models.Model):
|
||||
name = models.CharField(max_length=20, unique=True)
|
||||
|
||||
|
||||
class InlineReference(models.Model):
|
||||
referer = models.ForeignKey(InlineReferer, models.CASCADE)
|
||||
fk = models.ForeignKey(
|
||||
ReferencedByInline,
|
||||
models.CASCADE,
|
||||
@@ -926,10 +931,6 @@ class InlineReference(models.Model):
|
||||
)
|
||||
|
||||
|
||||
class InlineReferer(models.Model):
|
||||
refs = models.ManyToManyField(InlineReference)
|
||||
|
||||
|
||||
# Models for #23604 and #23915
|
||||
class Recipe(models.Model):
|
||||
rname = models.CharField(max_length=20, unique=True)
|
||||
|
||||
Reference in New Issue
Block a user