aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps
diff options
context:
space:
mode:
authorGravatar jchristgit <[email protected]>2023-12-15 20:19:27 +0100
committerGravatar GitHub <[email protected]>2023-12-15 20:19:27 +0100
commited170206d49377f8d636e131de9f086a0c455320 (patch)
tree55b8829329d069a75799838b4c3565ab2e5c7381 /pydis_site/apps
parentMerge pull request #1187 from python-discord/nplusone-nomination-entries (diff)
parentPrevent loading related object when updating tags (diff)
Merge pull request #1188 from python-discord/slightly-optimize-tag-updates
Prevent loading related object when updating tags
Diffstat (limited to 'pydis_site/apps')
-rw-r--r--pydis_site/apps/content/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/content/utils.py b/pydis_site/apps/content/utils.py
index cfd73d67..9c949a93 100644
--- a/pydis_site/apps/content/utils.py
+++ b/pydis_site/apps/content/utils.py
@@ -206,9 +206,9 @@ def record_tags(tags: list[Tag]) -> None:
# pretend it's previous state is the current state
old_tag = new_tag
- if old_tag.sha == new_tag.sha and old_tag.last_commit is not None:
+ if old_tag.sha == new_tag.sha and old_tag.last_commit_id is not None:
# We still have an up-to-date commit entry
- new_tag.last_commit = old_tag.last_commit
+ new_tag.last_commit_id = old_tag.last_commit_id
new_tag.save()