mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-07 11:23:18 +00:00
Sure, fix the docstring
This commit is contained in:
@@ -174,10 +174,9 @@ def permitted_object_ids(
|
||||
"""
|
||||
Generic version of ``permitted_document_ids`` for any model with an
|
||||
``owner`` field and guardian object-level permissions. ``include_deleted``
|
||||
only has an effect for models exposing a ``global_objects``/``deleted_at``
|
||||
soft-delete pattern (currently only ``Document``); for every other model
|
||||
it is accepted but has no effect, since those models have no soft-delete
|
||||
concept.
|
||||
only has an effect for models exposing a ``global_objects`` manager (the
|
||||
soft-delete pattern); for every other model it is accepted but has no
|
||||
effect, since those models have no soft-delete concept.
|
||||
"""
|
||||
has_soft_delete = hasattr(model, "global_objects")
|
||||
manager = (
|
||||
|
||||
Reference in New Issue
Block a user