Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
queryset = User.objects.filter(name__startswith="John")
queryset = queryset.filter(created_at__lte=datetime.date.today())
queryset = queryset.exclude(is_staff=False) print(queryset)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment