diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-19 18:28:10 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:38:56 +0200 | 
| commit | 34868fbe8f2f733d4d8513c8f5f2b0656f62abff (patch) | |
| tree | 97ca3ad47f32e5fa7c1ea26683aace7422db958a /ishtar_common/utils.py | |
| parent | 986511b2572acb369086ed613adc32ff1d1863a9 (diff) | |
| download | Ishtar-34868fbe8f2f733d4d8513c8f5f2b0656f62abff.tar.bz2 Ishtar-34868fbe8f2f733d4d8513c8f5f2b0656f62abff.zip | |
Fix test configuration
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 | 
