Filters
Refine your search
Saroj Devkota
kathmandu, Pokhara and other
Artist
#folk
#modern
#lok dohori
Biography
description of artist saroj devkota
@receiver(post_save, sender=Order)
def update_subscription_from_order(sender, instance, created, **kwargs):
if instance.status != "paid" or instance.is_processed:
return
try:
subscriber = Subscriber.objects.get(user=instance.user, is_active=True)
except Subscriber.DoesNotExist:
return
current_month = timezone.now().date().replace(day=1)
subscription, _ = Subscription.objects.get_or_create(
subscriber=subscriber,
billing_month=current_month,
defaults={
"total_price": 0,
"total_commission": 0
}
)
@receiver(post_save, sender=Order)
def update_subscription_from_order(sender, instance, created, **kwargs):
if instance.status != "paid" or instance.is_processed:
return
try:
subscriber = Subscriber.objects.get(user=instance.user, is_active=True)
except Subscriber.DoesNotExist:
return
current_month = timezone.now().date().replace(day=1)
subscription, _ = Subscription.objects.get_or_create(
subscriber=subscriber,
billing_month=current_month,
defaults={
"total_price": 0,
"total_commission": 0
}
)