get first row id in queryset code example Example: how to get only first record in django MyModel.objects.filter(blah=blah).first()