We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fece3a3 commit 5e5fb14Copy full SHA for 5e5fb14
1 file changed
openedx_authz/api/data.py
@@ -5,6 +5,7 @@
5
import re
6
from abc import abstractmethod
7
from enum import Enum
8
+from functools import cached_property
9
from typing import Any, ClassVar, Literal, Type
10
11
from attrs import define
@@ -468,7 +469,7 @@ def library_id(self) -> str:
468
469
"""
470
return self.external_key
471
- @property
472
+ @cached_property
473
def library_key(self) -> LibraryLocatorV2:
474
"""The LibraryLocatorV2 object for the content library.
475
@@ -581,7 +582,7 @@ def course_id(self) -> str:
581
582
583
584
585
586
def course_key(self) -> CourseKey:
587
"""The CourseKey object for the course.
588
0 commit comments