def _removeContentPanels(cls, remove):
        """
        Remove the panels and so hide the fields named.
        """
        if type(remove) is str:
            remove = [remove]
        cls.content_panels = [panel for panel in cls.content_panels
                              if getattr(panel, "field_name", None) not in remove]
def _removeContentPanels ( cls , remove ) : if type ( remove ) is str : remove = [ remove ] cls . content_panels = [ panel for panel in cls . content_panels if getattr ( panel , "field_name" , None ) not in remove ]
Remove the panels and so hide the fields named.