how to get an element of a query set in django code example Example: django queryset first element queryset.first()