def first(self):
        objects = list((self if self.ordered else self.order_by('pk'))[:1])
        if objects:
            return objects[0]
        return None
Free the memory buffer.
dataset/ETHPy150Open django/django/django/db/models/query.py/QuerySet.first--crossover with--dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/io.py/StringIO.close