Commit f1267532 authored by Patrick's avatar Patrick
Browse files

delete a permanence

parent 9de5f81c
# -*- coding: utf-8 -*-
from import BaseCommand
from repanier.const import PERMANENCE_SEND
from repanier.models import Permanence, Purchase, OfferItem, CustomerInvoice, ProducerInvoice, CustomerProducerInvoice, BankAccount
from django.conf import settings
from django.utils import translation
from repanier.task.task_purchase import admin_delete
class Command(BaseCommand):
args = '<none>'
help = 'Recalculate order amount'
def handle(self, *args, **options):
for permanence in Permanence.objects.filter(
id__in=[1, 2],
# status__lte=PERMANENCE_SEND
# id__gte=11,
# id__lte=16
print("%s" % permanence)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment