This is added in the cnf list query mixin which is where we have
all shortcut, syntactic sugar, and ease of use methods.
"""Shortcut method for getting the first item with a given instance."""
return self.with_instance(instance).first(default=default)
+ def highest_instance(self):
+ """Shortcut method for getting the next instance in a list of items."""
+ return max([c.instance for c in self]) if len(self) > 0 else -1
+
###############################################################################
# PUBLIC CLASSES