Fix some bugs in previous commit

- Legacy-Id: 7806
This commit is contained in:
Ole Laursen 2014-05-30 16:17:21 +00:00
parent 976d0b9d68
commit 63dabff779
2 changed files with 8 additions and 8 deletions

View file

@ -22,4 +22,4 @@ class GroupFeatures(object):
self.has_materials = True
if self.has_chartering_process:
about_page = "group_charter"
self.about_page = "group_charter"

View file

@ -36,6 +36,13 @@ class GroupInfo(models.Model):
res += " %s (%s)" % (self.type, self.acronym)
return res
@property
def features(self):
if not hasattr(self, "features_cache"):
from ietf.group.features import GroupFeatures
self.features_cache = GroupFeatures(self)
return self.features_cache
def about_url(self):
# bridge gap between group-type prefixed URLs and /group/ ones
from django.core.urlresolvers import reverse as urlreverse
@ -88,13 +95,6 @@ class Group(GroupInfo):
def bg_color(self):
return bg_group_colors[self.upcase_acronym]
@property
def features(self):
if not hasattr(self, "features_cache"):
from ietf.group.features import GroupFeatures
self.features_cache = GroupFeatures(self)
return self.features_cache
def json_url(self):
return "/group/%s.json" % (self.acronym,)