We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 311fbe2 commit aafb538Copy full SHA for aafb538
1 file changed
xblock/core.py
@@ -978,11 +978,6 @@ def display_name_with_default(self):
978
Uses ``display_name`` if it is set and not None. Otherwise, falls back
979
to a name derived from the block's ``usage_key.block_id`` by replacing
980
underscores with spaces.
981
-
982
- This method avoids direct attribute access and uses ``getattr`` to safely
983
- handle cases where attributes like ``display_name`` or ``usage_key`` may
984
- not be present.
985
986
Note:
987
This method does not perform any escaping. Callers are responsible
988
for ensuring the returned value is properly escaped where required.
0 commit comments