Django Flashcards

1
Q

Фильтрация по нескольким значениям поля

A
    filter_cert = {
        "certification": True,
        "passed_certification": False,
        "main_registry\_\_in": [EducationProgramMainRegistry.CERTIFIED.value, EducationProgramMainRegistry.PAID.value]
    }
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Show applied migrations

A

python manage.py showmigrations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly