You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
340 B
14 lines
340 B
# coding=utf-8
|
|
import os
|
|
import django
|
|
import sys
|
|
|
|
sys.path.append("/var/www/projects/lms/")
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lms.settings")
|
|
django.setup()
|
|
from finance.models import Bill
|
|
|
|
for bill in Bill.objects.filter(status='F'):
|
|
if not bill.user.customer:
|
|
bill.user.customer = True
|
|
bill.user.save()
|
|
|