how do i filter a django queryset to get the first item code example
Example 1: how to get only first record in django
MyModel.objects.filter(blah=blah).first()
Example 2: django queryset first element
queryset.first()
MyModel.objects.filter(blah=blah).first()
queryset.first()