Search code examples
pythondjangodjango-forms

Change record title in a StackedInline in Django


I am trying to either change or remove the title for each record in an inline, but have not been able to find a way to do it in the docs or by override get_formset. Specifically, I want to change or remove the title highlighted in the attached image. Any ideas how to do it please? Preferably without overriding CSS etc. enter image description here


Solution

  • Could you try setting a __str__(self) method for the AppHomePageItem class. That should be the trick