Fix getting line_items

This commit is contained in:
PCoder 2019-04-13 13:50:09 +02:00
parent 8816793803
commit 94c7873397

View file

@ -330,7 +330,7 @@ class MonthlyHostingBill(AssignPermissionsMixin, models.Model):
subscription_ids_csv=args['subscription_ids_csv'],
)
if 'line_items' in args['line_items']:
if 'line_items' in args:
line_items = args['line_items']
for item in line_items:
line_item_instance = HostingBillLineItem.objects.create(