Book.objects.filter(... according to visitor)
then get the latest allowed versions in Python, and I am wondering if there is a SQL / DRM solution here.
latest_under_review
, latest_published
but keeping track of these flags with the addition and removal of books can be a hassle.
cross apply
, which does not seem to be supported by django DRM.
Book.objects.filter(can be seen by user).filter('keep only the latest')
.
good architectural design
but in the same time I would like to keep "permission" and "logistics" orthogonal so that the query will always return the correct latest versions no matter how the logistics change.