def first(self):
        """Returns the first element from the database result or None.
        """
        try:
            return next(self)
        except __HOLE__:
            return None
dataset/ETHPy150Open anandology/broadgauge/broadgauge/models.py/ResultSet.first