#21908: Misleading documentation in ModelAdmin.get_inline_instances -------------------------------+-------------------- Reporter: matt@… | Owner: nobody Type: Uncategorized | Status: new Component: contrib.admin | Version: 1.6 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------- The documentation for this method seems a little sparse:
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_inline_instances It's not actually clear that you need to instantiate the inline classes in this manner: return [inline(self.model, self.admin_site) for inline in self.inlines] (Obviously, that is without filtering). I'm happy to submit a documentation patch, if it is likely to be accepted. -- Ticket URL: <https://code.djangoproject.com/ticket/21908> 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/061.286c77d79d2997fa74ee6aeae39f7f20%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.