Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated docs #259

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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