# Model Mixins

### ModelHavingTenantRelationsMixin

Sometimes we need to remove some objects. Usually, this is common task but with Tenants we can encounter case when global object having relations from tenants needs to be removed. Database will not allow this and raise IntegrationError. So before removing parent object, we need to ensure there is no related objects left in tenants.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://razortheory.gitbook.io/third-party-monitoring-module-documentation/technical-documentation/model-mixins-todo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
