|
|
|
@ -868,7 +868,7 @@ class BaseItemsViews(BaseViews): |
|
|
|
|
|
|
|
|
|
|
|
def get_xls(self, *args, **kwargs): |
|
|
|
def get_xls(self, *args, **kwargs): |
|
|
|
"""Создать документ в Excel и вернуть как строку.""" |
|
|
|
"""Создать документ в Excel и вернуть как строку.""" |
|
|
|
obj = self.get_obj(kwargs[' id']) |
|
|
|
obj = self.get_obj(kwargs['id']) |
|
|
|
obj_items = self.get_obj_items_qs(obj) |
|
|
|
obj_items = self.get_obj_items_qs(obj) |
|
|
|
profile = get_profile(obj.user) |
|
|
|
profile = get_profile(obj.user) |
|
|
|
main_account = BankAccount.objects.get_main(profile) |
|
|
|
main_account = BankAccount.objects.get_main(profile) |
|
|
|
|