forked from expo/troggle
Logbook: Add In-Line # Tags and @ Mentions. #4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 forlogbook.LogbookEntry
objects. Would suggest to use some polymorphic structure e.g. and inheritablelogbook.LogbookTaggableModel
or similar - objects likecaves.Cave
andcave.Entrance
etc. can then be tied tologbook.LogbookEntry
objects via aManyToManyField
relationship.logbook.LogbookTaqggableModel
should be an abstract base class.See: https://docs.djangoproject.com/en/4.2/topics/db/models/#abstract-base-classes