Skip to content

feat: upgrade django 5.2 in blue-krill#275

Open
xogas wants to merge 6 commits into
TencentBlueKing:masterfrom
xogas:feat/upgrade-django-5.2-blue-krill
Open

feat: upgrade django 5.2 in blue-krill#275
xogas wants to merge 6 commits into
TencentBlueKing:masterfrom
xogas:feat/upgrade-django-5.2-blue-krill

Conversation

@xogas
Copy link
Copy Markdown
Contributor

@xogas xogas commented May 12, 2026

No description provided.

@narasux narasux requested review from jiayuan929, narasux and piglei May 12, 2026 11:39
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.11", "3.12"]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.13 / 3.14 评估下能否加一下?

return self.get_prep_value(value)

def from_db_value(self, value, expression, connection, context=None):
def from_db_value(self, value, expression, connection):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是新的 Django 设计中,不再需要支持 context 参数么

for cp in self.hosts:
host, port = cp["host"], cp["port"]
if not isinstance(host, str) or not isinstance(port, int):
raise TypeError(f"Invalid sentinel endpoint: missing host or port, got host={host!r}, port={port!r}")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里好像不是检查 miss?而是检查类型,那么上面是不是应该用的 cp.get("host"), cp.get("port")

Copy link
Copy Markdown
Collaborator

@jiayuan929 jiayuan929 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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 this pull request may close these issues.

3 participants