1👍
You can use query sets like sets:
intersection = queryset1 & queryset2
intersection
will be the intersection of the two querysets
- [Django]-How to stay DRY with Django model field definitions
- [Django]-Chinese django translations not working
- [Django]-Displaying pyqtgraph and pyqt widgets on web
- [Django]-Using Python Dataclass in Django Models
- [Django]-How to customize the login error message?
Source:stackexchange.com