Django-Q() function

1 Introduction

In Django's ORM statement, the Q() function is used for multi-condition queries and supports &(and), |(or), and ~(not) operators.

2. Practice

1. Create models and perform data migration

2. Data filling

3. Check the results in the shell

Guess you like

Origin blog.csdn.net/m0_62653695/article/details/132000895