Merge pull request #3647 from InspectorCaracal/patch-34

Properly reinitialize contents cache
This commit is contained in:
Griatch 2024-10-21 20:44:17 +02:00 committed by GitHub
commit 17448dd618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,6 +68,7 @@ class ContentsHandler:
"""
objects = self.load()
self._typecache = defaultdict(dict)
self._pkcache = {obj.pk: True for obj in objects}
for obj in objects:
try: