Skip to content

Commit

Permalink
a better way of dealing with incomplete setups
Browse files Browse the repository at this point in the history
  • Loading branch information
superdmp committed Jun 19, 2011
1 parent c9eb79e commit 5a77cfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contacts_and_people/models.py
Expand Up @@ -267,7 +267,7 @@ def get_template(self):
if self.get_website():
return self.get_website().get_template()
else:
return settings.CMS_DEFAULT_TEMPLATE
return default_entity.get_website().get_template()

def get_building(self):
"""
Expand Down Expand Up @@ -668,6 +668,6 @@ class EntityMembersPluginEditor(CMSPlugin):
default_entity = Entity.objects.get(id = base_entity_id)
except (Entity.DoesNotExist, DatabaseError):
pass

from news_and_events.functions import get_news_and_events
from news_and_events.cms_plugins import CMSNewsAndEventsPlugin

0 comments on commit 5a77cfa

Please sign in to comment.