Logbook: Add In-Line # Tags and @ Mentions. #4

Open
opened 2023-08-11 11:47:57 +01:00 by xle · 1 comment
Owner

Allow users to tag other models (#) as well as other users (@) in the body-text of logbook posts.

See:

Should be very doable with a pair of regex parsers in the save() method for logbook.LogbookEntry objects. Would suggest to use some polymorphic structure e.g. and inheritable logbook.LogbookTaggableModel or similar - objects like caves.Cave and cave.Entrance etc. can then be tied to logbook.LogbookEntry objects via a ManyToManyField relationship.

Allow users to tag other models (#) as well as other users (@) in the body-text of logbook posts. See: - https://stackoverflow.com/questions/46930987/how-to-mention-tag-users-with-on-a-django-developed-project - https://stackoverflow.com/questions/59791079/mentioning-or-tagging-users-or-any-models-in-django Should be very doable with a pair of regex parsers in the `save()` method for `logbook.LogbookEntry` objects. Would suggest to use some polymorphic structure e.g. and inheritable `logbook.LogbookTaggableModel` or similar - objects like `caves.Cave` and `cave.Entrance` etc. can then be tied to `logbook.LogbookEntry` objects via a `ManyToManyField` relationship.
Author
Owner

logbook.LogbookTaqggableModel should be an abstract base class.

See: https://docs.djangoproject.com/en/4.2/topics/db/models/#abstract-base-classes

`logbook.LogbookTaqggableModel` should be an abstract base class. See: https://docs.djangoproject.com/en/4.2/topics/db/models/#abstract-base-classes
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xle/troggle-unchained#4
No description provided.