#36468: Popup stays blank after adding a related object when filter_horizontal
is
used
-------------------------------------+-------------------------------------
Reporter: Juan Rocha | Owner: Mark
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: filter_horizontal; | Triage Stage: Accepted
SelectBox; add_to_cache; |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mark):
After investigating more, I figured out, that any select other than the
triggered one, is affected by this. The inline is not necessary. Two
foreign keys to the same model have the same effect.
{{{
from django.db import models
class Child(models.Model):
name = models.CharField()
class Parent(models.Model):
name = models.CharField()
m2m = models.ManyToManyField(Child, blank=True)
fk1 = models.ForeignKey(Child, on_delete=models.CASCADE,
related_name="+")
fk2 = models.ForeignKey(Child, on_delete=models.CASCADE,
related_name="+")
}}}
I'll investigate, if this has any consequences for the bugfix.
--
Ticket URL: <https://code.djangoproject.com/ticket/36468#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070199b9dd6699-f3484bea-1d83-4209-9962-6ad0252c88c2-000000%40eu-central-1.amazonses.com.