diff --git a/src/linkahead/common/models.py b/src/linkahead/common/models.py index ea537ffe8c44a7a7fb79c2d4080b63f9b3da2284..a7030d9523bab9ea26570acf45c3f067249f09e6 100644 --- a/src/linkahead/common/models.py +++ b/src/linkahead/common/models.py @@ -3001,6 +3001,10 @@ class Container(list): def __repr__(self): return xml2str(self.to_xml()) + def __getitem__(self, key): + # Construct new Container from list slice + return Container().extend(super().__getitem__(key)) + @staticmethod def from_xml(xml_str): """Creates a Container from the given xml string.