コード例 #1
0
ファイル: models.py プロジェクト: VBelozyorov/libcms
def remove_attachments(sender, **kwargs):
    delete_content_attaches(
        'participant_pages',
        str(kwargs['instance'].library_id) + '_' + str(kwargs['instance'].url_path.replace('/', '_')))
    pass
コード例 #2
0
ファイル: models.py プロジェクト: Kirito1899/libcms
def remove_attachments(sender, **kwargs):
    delete_content_attaches('participant_events' + str(kwargs['instance'].library_id), str(kwargs['instance'].id))
コード例 #3
0
ファイル: models.py プロジェクト: VBelozyorov/libcms
def remove_attachments(sender, **kwargs):
    delete_content_attaches('participant_news', str(kwargs['instance'].id))
    pass
コード例 #4
0
def remove_attachments(sender, **kwargs):
    delete_content_attaches('participant_news', str(kwargs['instance'].id))
    pass