#22413: Allow model instance attributes in ModelAdmin.fields -------------------------------------+------------------------------------- Reporter: moritzs | Owner: moritzs Type: New feature | Status: closed Component: contrib.admin | Version: master Severity: Normal | Resolution: wontfix Keywords: ModelAdmin instance | Triage Stage: attribute field | Unreviewed Has patch: 1 | Needs documentation: 0 Needs tests: 1 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by timo):
* status: assigned => closed * resolution: => wontfix Comment: Thanks for the proposal, but I don't feel this is a common enough use-case to justify the additional complexity. I don't think we should encourage writing really complex `__getattr__` methods. As noted earlier, you can add proper methods or properties if you need something in `fields`. -- Ticket URL: <https://code.djangoproject.com/ticket/22413#comment:4> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.35db6e7e509d61f8edb63f66248231a0%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.