From 4c12083618a14b9d86efea27a492854c49f1f7ad Mon Sep 17 00:00:00 2001 From: Alexander Burdeiny Date: Mon, 1 Aug 2016 12:23:53 +0300 Subject: [PATCH] fix for: AttributeError at /members/rvc/ 'Company' object has no attribute 'main_title' --- meta/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/models.py b/meta/models.py index 317df3de..b8ccdd2a 100644 --- a/meta/models.py +++ b/meta/models.py @@ -63,7 +63,7 @@ class MetaSetting(TranslatableModel): object_params = { 'object_name': 'name', 'object_title': 'main_title', - 'object_title_l': lambda obj: getattr(obj, 'main_title', '')[:1].lower() + getattr(obj, 'main_title', '')[1:] if obj.main_title else '', + 'object_title_l': lambda obj: getattr(obj, 'main_title', '')[:1].lower() + getattr(obj, 'main_title', '')[1:] if getattr(obj, 'main_title') else '', 'city': 'city', 'country': 'country',