def create_default_groups(self):
        for group in self.groups:
            group = group.replace(" ", "_").lower()
            self[group] = NamedRequirements(group)
def reorder_item(self, item, position):
    new_position = min(max(position, 0), len(self._items) - 1)