-
-
Save brunomichetti/d0d5430bc8b0181acdb2ea0a7fa103f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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