Skip to content
Snippets Groups Projects
Commit d357ec9b authored by Ben Warzeski's avatar Ben Warzeski
Browse files

remove old format from teams_config

parent 7778347a
No related branches found
No related tags found
No related merge requests found
......@@ -84,21 +84,6 @@ class TeamsConfig(object):
]
}
@cached_property
def cleaned_data_old_format(self):
"""
JSON-friendly dictionary containing cleaned data from this TeamsConfig,
excluding newly added fields.
Here for backwards compatibility; to be removed (TODO MST-40).
"""
return {
'max_team_size': self.default_max_team_size,
'topics': [
teamset.cleaned_data_old_format for teamset in self.teamsets
]
}
@property
def is_enabled(self):
"""
......@@ -246,20 +231,6 @@ class TeamsetConfig(object):
'type': self.teamset_type.value,
}
@cached_property
def cleaned_data_old_format(self):
"""
JSON-friendly dictionary containing cleaned data from this TeamsConfig,
excluding newly added fields.
Here for backwards compatibility; to be removed (TODO MST-40).
"""
return {
'id': self.teamset_id,
'name': self.name,
'description': self.description,
}
@cached_property
def teamset_id(self):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment