#33868: Admin “delete object(s)” view: improve labels of m2m relations
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
[email protected] |
Type: | Status: closed
Cleanup/optimization |
Component: contrib.admin | Version: 4.0
Severity: Normal | Resolution: wontfix
Keywords: admin, delete view | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* stage: Accepted => Unreviewed
Comment:
Closing as "wonfix" due to backward compatibility concerns and a possible
performance regression. Users can always override `__str__` in their app,
e.g.
{{{#!python
class FirstModel(models.Model):
pass
class SecondModel(models.Model):
firsts = models.ManyToManyField(FirstModel)
def to_str(self):
return f"between {self.firstmodel} and {self.secondmodel}"
SecondModel.firsts.through.__str__ = to_str
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33868#comment:7>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/010701849ebe95d1-e5f65108-4572-4511-906d-518f7fe6d652-000000%40eu-central-1.amazonses.com.