must_inherit_from
Returns a list containing a Django system check error indicating that a specific option value must inherit from a designated parent class.
def must_inherit_from(
parent: string,
option: string,
obj: object,
id: string
) - > list
Generates a list containing a validation error indicating that a specific configuration option must inherit from a designated parent class.
Parameters
| Name | Type | Description |
|---|---|---|
| parent | string | The name of the required parent class that the object should inherit from. |
| option | string | The name of the configuration setting or option being validated. |
| obj | object | The object instance whose class is being checked for proper inheritance. |
| id | string | A unique identifier for the error message, typically used for Django system check categorization. |
Returns
| Type | Description |
|---|---|
list | A list containing a single Django system check Error object detailing the inheritance violation. |