def get_actions(self): from camelot.admin.action import OpenNewView from camelot_example.model import Movie new_movie_action = OpenNewView( self.get_related_admin(Movie) ) new_movie_action.icon = Icon('tango/22x22/mimetypes/x-office-presentation.png') return [new_movie_action]
def get_actions(self): from camelot.admin.action import OpenNewView from camelot.model.party import Party from camelot_example.model import Movie new_movie_action = OpenNewView( self.get_related_admin(Movie) ) new_movie_action.icon = Icon('tango/22x22/mimetypes/x-office-presentation.png') return [new_movie_action, OpenNewView(self.get_related_admin(Party))]
def get_actions(self): new_timetrack_action = OpenNewView( self.get_related_admin(TrackTime) ) new_timetrack_action.icon = Icon('tango/32x32/actions/appointment-new.png') return [new_timetrack_action]