Skip to content

redirect to the changlist  #23

@madthew

Description

@madthew

Is there a way to perform an action and avoid going into the changeform ? Just perform the action remainging in the changelist.

Maybe I am doing something wrong.

def do_other_action(self, obj):
        messages.info('hi')

and


def get_row_actions(self, obj):
        row_actions = [

            {
                'label': 'Mark Received dasdas asd asd aasd dasds',
                'action': 'do_other_action',
                'tooltip': 'Segnala falsi positivi o altri errori',
                'enabled': True
            }
}


the above code opens the changeform of the object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions