# abuse.CinderPolicy

## Model Info

| Key | Value |
|---|-----|
| Model Name | CinderPolicy |
| Verbose Name | cinder policy |
| Verbose Name Plural | Cinder Policies |
| Docstring | <p>CinderPolicy(id, created, modified, uuid, name, text, parent, expose\_in\_reviewer\_tools, enforcement\_actions, present\_in\_cinder)</p> |
| Is Abstract | False |
| Is Proxy | False |
| Is Managed | True |
| Ordering | [] |
| Permissions | [] |
| Default Permissions | ('add', 'change', 'delete', 'view') |
| Indexes | [] |
| Constraints | [] |
| Database Table | abuse_cinderpolicy |
| Base Manager | None |
| Default Manager | None |
| File | /data/olympia/src/olympia/abuse/models.py |
| Starting Line Number | 902 |
| Method Resolution Order | (<class 'olympia.abuse.models.CinderPolicy'>, <class 'olympia.amo.models.ModelBase'>, <class 'olympia.amo.models.SaveUpdateMixin'>, <class 'django.db.models.base.Model'>, <class 'django.db.models.utils.AltersData'>, <class 'object'>) |

## Fields

| Field Name | Field Type | Database Column | Database Type | Verbose Name |
|----------|----------|---------------|-------------|------------|
| `ContentDecision_policies+` | ManyToOneRel |  | integer |  |
| `children` | ManyToOneRel |  | integer |  |
| `cinderpolicylog` | ManyToOneRel |  | integer |  |
| `contentdecision` | ManyToManyRel |  | through abuse.ContentDecision_policies |  |
| `created` | DateTimeField | created | datetime(6) | created |
| `enforcement_actions` | JSONField | enforcement_actions | json | enforcement actions |
| `expose_in_reviewer_tools` | BooleanField | expose_in_reviewer_tools | bool | expose in reviewer tools |
| `id (pk)` | AutoField | id | integer AUTO_INCREMENT | ID |
| `modified` | DateTimeField | modified | datetime(6) | modified |
| `name` | CharField | name | varchar(255) | name |
| `parent` | ForeignKey | parent_id | integer | parent |
| `present_in_cinder` | BooleanField | present_in_cinder | bool | present in cinder |
| `reviewactionreason` | ManyToOneRel |  | integer |  |
| `text` | TextField | text | longtext | text |
| `uuid` | CharField | uuid | varchar(36) | uuid |

## Relations

| Field Name | Field Type | Database Column | Database Type | Related Model | Related Name |
|----------|----------|---------------|-------------|-------------|------------|
| `parent` | ForeignKey | parent_id | integer | abuse.CinderPolicy | children |

fields_reverse_relation=[FieldReverseRelation(name='children', field_type='ManyToOneRel', field_db_type='integer', related_model='abuse.CinderPolicy', field_name_on_related_model='parent', field_type_on_related_model='ForeignKey'), FieldReverseRelation(name='ContentDecision_policies+ (no reverse relation allowed)', field_type='ManyToOneRel', field_db_type='integer', related_model='abuse.ContentDecision_policies', field_name_on_related_model='cinderpolicy', field_type_on_related_model='ForeignKey'), FieldReverseRelation(name='cinderpolicy_set', field_type='ManyToManyRel', field_db_type='through abuse.ContentDecision_policies', related_model='abuse.ContentDecision', field_name_on_related_model='policies', field_type_on_related_model='ManyToManyField'), FieldReverseRelation(name='cinderpolicy_set', field_type='ManyToOneRel', field_db_type='integer', related_model='activity.CinderPolicyLog', field_name_on_related_model='cinder_policy', field_type_on_related_model='ForeignKey'), FieldReverseRelation(name='cinderpolicy_set', field_type='ManyToOneRel', field_db_type='integer', related_model='reviewers.ReviewActionReason', field_name_on_related_model='cinder_policy', field_type_on_related_model='ForeignKey')]

## Reverse Relations

| Field Name | Field Type | Database Type | Related Model | Field Name on Related Model | Field Type on Related Model |
|----------|----------|-------------|-------------|---------------------------|---------------------------|
| `ContentDecision_policies+ (no reverse relation allowed)` | ManyToOneRel | integer | abuse.ContentDecision_policies | cinderpolicy | ForeignKey |
| `children` | ManyToOneRel | integer | abuse.CinderPolicy | parent | ForeignKey |
| `cinderpolicy_set` | ManyToManyRel | through abuse.ContentDecision_policies | abuse.ContentDecision | policies | ManyToManyField |
| `cinderpolicy_set` | ManyToOneRel | integer | activity.CinderPolicyLog | cinder_policy | ForeignKey |
| `cinderpolicy_set` | ManyToOneRel | integer | reviewers.ReviewActionReason | cinder_policy | ForeignKey |

## Methods

### Other Methods

| Method Name | Signature |
|-----------|---------|
| `full_name` | `(self)` |
| `full_text` | `(self, *, text=None, values=None)` |
| `get_admin_absolute_url` | `(self)` |
| `get_admin_url_path` | `(self)` |
| `get_decision_actions_from_policies` | `(policies, *, for_entity=None)` |
| `get_full_texts` | `(policies, *, values=None)` |
| `get_next_by_created` | `(self, *, field=<django.db.models.fields.DateTimeField: created>, is_next=True, **kwargs)` |
| `get_next_by_modified` | `(self, *, field=<django.db.models.fields.DateTimeField: modified>, is_next=True, **kwargs)` |
| `get_previous_by_created` | `(self, *, field=<django.db.models.fields.DateTimeField: created>, is_next=False, **kwargs)` |
| `get_previous_by_modified` | `(self, *, field=<django.db.models.fields.DateTimeField: modified>, is_next=False, **kwargs)` |
| `get_text_formatter_pairs` | `(self)` |
| `get_unfiltered_manager` | `()` |
| `reload` | `(self)` |
| `serializable_reference` | `(self)` |
| `update` | `(self, **kw)` |


### Private Methods

| Method Name | Signature |
|-----------|---------|
| `_get_field_value_map` | `(self, meta, exclude=None)` |


## Custom Managers

### default

**Class:** `ManagerFromCinderPolicyQuerySet`

#### Custom Methods

##### `without_parents_if_their_children_are_present(self)`

*Evaluates the queryset into a list, excluding parents of any child
policy if present.*

#### Custom QuerySet

**Class:** `CinderPolicyQuerySet`

*Represent a lazy database lookup for a set of objects.*

##### Custom Methods

###### `without_parents_if_their_children_are_present(self)`

*Evaluates the queryset into a list, excluding parents of any child
policy if present.*

### objects

**Class:** `ManagerFromCinderPolicyQuerySet`

#### Custom Methods

##### `without_parents_if_their_children_are_present(self)`

*Evaluates the queryset into a list, excluding parents of any child
policy if present.*

#### Custom QuerySet

**Class:** `CinderPolicyQuerySet`

*Represent a lazy database lookup for a set of objects.*

##### Custom Methods

###### `without_parents_if_their_children_are_present(self)`

*Evaluates the queryset into a list, excluding parents of any child
policy if present.*


---

!!! THIS DOCUMENT WAS *AUTOGENERATED* ON 2025-08-05 !!!