Model Comments
Be able to add a comment to an item that serves the purpose of storing tid bits of information related to the item the comment/note was left for.
Use case
An authorized person could leave a comment/note on a device (or other item) that would then be viewable by anyone who has access to view the item.
Details
A simple model could be created that stores the note text, who created, when created, model PK and model name. the note field could be stored as either plain text or un-rendered markdown that could be rendered at the time of viewing with the python module python-markdown
. Having markdown as an option will be beneficial as links and other rich features can then be added to a note.
Fields
-
id
pk of the note -
note_text
plain text / un-rendered markdown -
user
the user who added the note -
modified_user
the user who last modified the note -
model_pk
the PK of the model the note relates to -
model_name
a string that matches the model name -
created
date time of creation -
modified
date time of modification -
organization
pk of the organization the note belongs to
Requirements
-
Signals:
-
model delete
to delete related notes -
model organization change
to update related notes organization
-
-
All ITAM items can have comment/note added to it.
-
Device -
Operating System -
Software
-
Links / References
- python-markdown module