Changes between Initial Version and Version 1 of Ticket #27755, comment 2


Ignore:
Timestamp:
Jan 24, 2017, 10:27:56 AM (8 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27755, comment 2

    initial v1  
    22What I want to do is just set `self.inlines` to dynamic values according to different person or object. not `inline instances`, so I advise to add a new hook  `get_inlines(request, obj=None)` to finish such a thing.
    33
    4 Replying to [comment:1 Tim Graham]:
    5 > Are you going to offer a patch to show exactly what you have in mind? I'm not immediately convinced that another hook is needed since the cost of duplicating a for loop is not that great.
     4I've created a new pull request here: ​https://github.com/django/django/pull/7920.
Back to Top