forked from expo/troggle
Logbook: Add In-Line # Tags and @ Mentions. #4
Reference in New Issue
Block a user
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.LogbookEntryobjects. Would suggest to use some polymorphic structure e.g. and inheritablelogbook.LogbookTaggableModelor similar - objects likecaves.Caveandcave.Entranceetc. can then be tied tologbook.LogbookEntryobjects via aManyToManyFieldrelationship.logbook.LogbookTaqggableModelshould be an abstract base class.See: https://docs.djangoproject.com/en/4.2/topics/db/models/#abstract-base-classes