def remove_attachments(sender, **kwargs): delete_content_attaches( 'participant_pages', str(kwargs['instance'].library_id) + '_' + str(kwargs['instance'].url_path.replace('/', '_'))) pass
def remove_attachments(sender, **kwargs): delete_content_attaches('participant_events' + str(kwargs['instance'].library_id), str(kwargs['instance'].id))
def remove_attachments(sender, **kwargs): delete_content_attaches('participant_news', str(kwargs['instance'].id)) pass