chore(deps): обновить Django до 6.1 - #10
Merged
Merged
Conversation
Dependabot ходит раз в месяц, последний прогон был 2026-08-01, а 6.1 вышла 2026-08-05, поэтому обновление делается руками: от версии зависят уроки курса python_django_orm_course. Нижняя граница поднята до 6.1 намеренно: курс учит savepoint_create() и fetch_mode(FETCH_PEERS), которых в 6.0 нет, а savepoint() на 6.1 печатает RemovedInDjango70Warning. Проверено: make setup, make test, make lint, manage.py check, makemigrations --check (без дрейфа), shell_plus стартует и печатает SQL. django-extensions 4.1 совместим.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Зачем
Django 6.1 вышла 2026-08-05. Dependabot в этом репозитории настроен на
interval: "monthly", последний прогон был 2026-08-01, за четыре дня до релиза, поэтому обновление пришло бы только 2026-09-01. Делается руками, потому что от версии зависят правки уроков курсаpython_django_orm_course.Почему поднята нижняя граница, а не только лок
Курс теперь учит
transaction.savepoint_create()иQuerySet.fetch_mode(models.FETCH_PEERS)— в Django 6.0 их нет. Плюсsavepoint()на 6.1 печатаетRemovedInDjango70Warning: savepoint() is deprecated, то есть студент увидел бы предупреждение в REPL.Проверено на этой ветке
make setup,make test→ 1 passedmake lint→ All checks passedmanage.py check→ no issuesmanage.py makemigrations --check --dry-run→ No changes detected (дрейфа нет,DEFAULT_AUTO_FIELDпрописан явно)shell_plusстартует, импортирует модели и печатает SQL сExecution timedjango-extensions 4.1совместимОтдельно прогнаны все примеры уроков, которые опираются на этот проект, с
warnings.simplefilter("error", DeprecationWarning): ни одного устаревшего вызова.🤖 Generated with Claude Code