I'm working with a system that has a number of notifications around the creation of items within groups and am trying to model anonymous actors in notifications.
Consider the contrived example:
A
Book
belongs to aLibrary
, and I am a user of the library interested in books in a particular topic. The library keeps me informed of when books of a certain topic are checked out, but for security reasons doesn't let me know who checked it out.
The activity stream for this would be:
A patron (
actor
) checked out (verb
) the book "Learning Python, 5th Edition" (object
) in the subject "Computer books" (target
).
The problem here is that "A patron" isn't an entity in my database, particularly in my case, Django-notifications requires an actor, and that that actor be a instance of a model. But in this case there is no "actor" as such.
Is there a better way to write this activity stream? Is there a way to write it that doesn't involve putting a fake actor into the database?