def get_displayable_field_names(self):
        """
        Return all field names, excluding reverse foreign key relationships.
        """
        return [
            f.name
            for f in self.model._meta.get_fields()
            if not f.one_to_many
        ]
def get_displayable_field_names ( self ) : return [ f . name for f in self . model . _meta . get_fields ( ) if not f . one_to_many ]
Return all field names, excluding reverse foreign key relationships.