Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Disable deletion if model.PROTECTED fk linked #502

Open
kmmbvnr opened this issue Mar 26, 2021 · 0 comments
Open

Disable deletion if model.PROTECTED fk linked #502

kmmbvnr opened this issue Mar 26, 2021 · 0 comments

Comments

@kmmbvnr
Copy link
Collaborator

kmmbvnr commented Mar 26, 2021

File "material/frontend/views/delete.py", line 47, in get_context_data
    kwargs.setdefault("deleted_objects", dict(self._get_deleted_objects()))
  File "material/frontend/views/delete.py", line 39, in _get_deleted_objects
    collector.collect([self.object])
  File "django/db/models/deletion.py", line 302, in collect
    raise ProtectedError(
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant