Skip to content

Commit

Permalink
fix(core): don't cache the possible relation entities
Browse files Browse the repository at this point in the history
The entities types a relation can point to can be changed at any time,
so they should not be cached.

Closes: #914
  • Loading branch information
b1rger committed Jun 6, 2024
1 parent ced59f4 commit 8055f7b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apis_core/utils/helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import difflib
import functools
import importlib
import inspect
import itertools
Expand All @@ -20,7 +19,6 @@
from django_tables2 import RequestConfig


@functools.lru_cache
def get_classes_with_allowed_relation_from(
entity_name: str,
) -> list[object]:
Expand Down

0 comments on commit 8055f7b

Please sign in to comment.