Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In notequal_query chapter Method 1 using exclude example is missing #62

Open
dostogircse171 opened this issue Jan 5, 2024 · 0 comments · May be fixed by #63
Open

In notequal_query chapter Method 1 using exclude example is missing #62

dostogircse171 opened this issue Jan 5, 2024 · 0 comments · May be fixed by #63

Comments

@dostogircse171
Copy link

In the chapter:
4. How to do a NOT query in Django queryset?
4.1. The query in detail

There are 2 example one is using exclude(<condition>) and another using filter(~Q(<condition>)) but the first example under Method 1 using exclude is missing.

The example should be like this

queryset = User.objects.exclude(id__lt=5)
queryset
<QuerySet [<User: Ritesh>, <User: Billy>, <User: Radha>, <User: Sohan>, <User: Raghu>, <User: Rishab>]>

dostogircse171 added a commit to dostogircse171/django-orm-cookbook that referenced this issue Jan 5, 2024
Updated the example which was not displaying on the chapter.
This fixes agiliq#62
dostogircse171 added a commit to dostogircse171/django-orm-cookbook that referenced this issue Jan 5, 2024
Updated the example method of exclude.
This fixes agiliq#62
@dostogircse171 dostogircse171 linked a pull request Jan 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant