Skip to content

Commit

Permalink
claim buy&sell images
Browse files Browse the repository at this point in the history
  • Loading branch information
VIBR0X committed Aug 6, 2023
1 parent 408cee2 commit 241c905
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion upload/management/commands/clean-images.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.core.management.base import BaseCommand
from django.utils import timezone
from django.db.models import Q
from buyandsell.models import Product
from upload.models import UploadedImage
from events.models import Event
from bodies.models import Body
Expand Down Expand Up @@ -30,7 +31,8 @@ def handle(self, *args, **options):
Body.objects.filter(image_url__contains=url),
ComplaintImage.objects.filter(image_url__contains=url),
Community.objects.filter(Q(logo_image__contains=url) | Q(cover_image__contains=url)),
CommunityPost.objects.filter(image_url__contains=url)
CommunityPost.objects.filter(image_url__contains=url) |
Product.objects.filter(product_image__contains=url)
]

# Look for claimants
Expand Down

0 comments on commit 241c905

Please sign in to comment.