From 94c78733974bb447c675dc47200d7267328f0252 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 13 Apr 2019 13:50:09 +0200 Subject: [PATCH] Fix getting line_items --- hosting/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/models.py b/hosting/models.py index 34b16689..4476615a 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -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(