feat(api): Add option to viewset to render field markdown metadata

ref: #466 #467 nofusscomputing/centurion_erp_ui#40
This commit is contained in:
2025-01-09 02:19:23 +09:30
parent 86b63acb00
commit af96e47126
2 changed files with 61 additions and 42 deletions

View File

@ -321,6 +321,13 @@ class CommonViewSet(
required to generate the UI.
"""
metadata_markdown: bool = False
"""Query for item within markdown and add to view metadata
**Note:** This is not required for detail view as by default the metadata
is always gathered.
"""
model_documentation: str = None
"""Model Documentation URL