Skip to content

Commit

Permalink
Synced README changes to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and github-actions[bot] committed Apr 8, 2021
1 parent bb5ad7b commit 23da8e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ Out[11]: <QuerySet [<Tag: men>, <Tag: women>]>
`_clone_excluded_m2o_or_o2m_fields` | Excluded Many to One/One to Many fields. |
`_clone_excluded_o2o_fields` | Excluded one to one fields. |

> :warning: NOTE: Ensure to either set `_clone_excluded_*` or `_clone_*`. Using both would raise errors.
> **NOTE:** :warning:
> - Ensure to either set `_clone_excluded_*` or `_clone_*`. Using both would raise errors.
### Creating clones without subclassing `CloneMixin`.

Expand Down Expand Up @@ -219,7 +220,7 @@ In [11]: test_obj_clone.tags.all()
Out[11]: <QuerySet []>
```

> :warning: NOTE:
> **NOTE:** :warning:
>
> * This method won't copy over related objects like Many to Many/One to Many relationships.
> * Ensure that required fields skipped from being cloned are passed in using the `attrs` dictionary.
Expand Down Expand Up @@ -271,7 +272,8 @@ class TestModelAdmin(CloneModelAdmin):
include_duplicate_object_link = True
```

> :warning: NOTE: Ensure that `model_clone` is placed before `django.contrib.admin`
> **NOTE:** :warning:
> - Ensure that `model_clone` is placed before `django.contrib.admin`
```python
INSTALLED_APPS = [
Expand Down

0 comments on commit 23da8e4

Please sign in to comment.