Hi All
I've been using Django since before newforms-admin and have seen ModelAdmin gradually becoming more customization. I often use dynamic inlines (based on the state of the object) and would like to clean up the implementation a bit.
I would like to open a ticket to add:
def get_inlines(self, request, obj=None):
return self.inlines
to ModelAdmin and then change
def get_inline_instances(self, request, obj=None):
inline_instances = []
for inline_class in self.inlines:
to
def get_inline_instances(self, request, obj=None):
inline_instances = []
for inline_class in self.get_inlines(request, obj=obj):
Any reasons not to do this?
Regards
Gert