fix sanitization_entity in view

This commit is contained in:
Cayo Puigdefabregas 2023-03-08 10:58:28 +01:00
parent eed1075771
commit ab6f89c3d2
1 changed files with 1 additions and 2 deletions

View File

@ -1062,8 +1062,7 @@ class ExportsView(View):
my_data = None
customer_details = None
if hasattr(g.user, 'sanitization_entity'):
if g.user.sanitization_entity:
my_data = list(g.user.sanitization_entity)[0]
my_data = g.user.sanitization_entity
try:
if len(request.referrer.split('/lot/')) > 1: