def create_default_groups(self):
        for group in self.groups:
            group = group.replace(" ", "_").lower()
            self[group] = NamedRequirements(group)
def serialize(self, value, display=False):
        if value is None:
            return ""
        return encode(value)