diff options
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r-- | ishtar_common/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index 2aa8db298..a263f3640 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -494,7 +494,9 @@ def post_save_geo(sender, **kwargs): # is loaded before models instance = kwargs.get('instance') - current_source = unicode(instance.__class__._meta.verbose_name) + current_source = "default" + if hasattr(instance.__class__, "_meta"): + current_source = unicode(instance.__class__._meta.verbose_name) if instance.point_source_item and \ instance.point_source_item != current_source: # refetch instance.point, instance.point_2d = None, None @@ -505,7 +507,6 @@ def post_save_geo(sender, **kwargs): point_2d = instance.point_2d profile = get_current_profile() modified = False - print (instance) if (point or point_2d) and instance.x is None and not \ instance.point_source: # db source |