[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#756752: tracker.debian.org: Access package screenshots



Hi,

On Wed, 27 Aug 2014, Andrew Starr-Bochicchio wrote:
> Thanks for the feedback. Where do you think it is best to store this
> information? The problem is that I can't use bulk delete for a
> specific PackageExtractedInfo key and doing it to the object obviously
> destroys other info we want to keep. Or am I just missing something?

You can delete all PackageExtractedInfo of a specific key:

with transaction.atomic():
    PackageExtractedInfo.objects.filter(key='screenshots').delete()
    PackageExtractedInfo.objects.bulk_create(...)

Does that answer your question?

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/


Reply to: