Fix some bugs in previous commit
- Legacy-Id: 7806
This commit is contained in:
parent
976d0b9d68
commit
63dabff779
ietf/group
|
@ -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"
|
||||
|
|
|
@ -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,)
|
||||
|
||||
|
|
Loading…
Reference in a new issue