def get_actions(self, request): category_actions = dict(create_action(s) for s in get_model('coop_local', 'PersonCategory').objects.all()) mailing_actions = dict(ml_action(s) for s in get_model('coop_local', 'MailingList').objects.filter(subscription_option=1)) my_actions = dict(category_actions, **mailing_actions) return dict(my_actions, **super(PersonAdmin, self).get_actions(request)) # merging two dicts
def get_actions(self, request): myactions = dict(create_action(s) for s in get_model('coop_local', 'PersonCategory').objects.all()) return dict(myactions, **super(PersonAdmin, self).get_actions(request)) # merging two dicts