Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#32576 closed Cleanup/optimization (fixed)

Correct documentation for dumpdata --exclude

Reported by: Tim McCurrach Owned by: Tim McCurrach
Component: Documentation Version: 3.1
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The documentation for the dumpdata exclude option currently reads:

Prevents specific applications or models (specified in the form of app_label.ModelName) from being dumped. If you specify a model name, the output will be restricted to that model, rather than the entire application. You can also mix application names and model names.

This isn't correct. If you specify a model name, the output is not restricted to that model. I think the intended meaning of this sentence is that only that model will be excluded (rather than the entire application being excluded).

Change History (5)

comment:1 by Tim McCurrach, 4 years ago

Has patch: set

comment:2 by Mariusz Felisiak, 4 years ago

Triage Stage: UnreviewedAccepted

Good catch.

Version 0, edited 4 years ago by Mariusz Felisiak (next)

comment:3 by GitHub <noreply@…>, 4 years ago

Resolution: fixed
Status: assignedclosed

In cf2f6fc:

Fixed #32576 -- Corrected dumpdata docs for passing model names to the --exclude option.

comment:4 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

In 153a681:

[3.2.x] Fixed #32576 -- Corrected dumpdata docs for passing model names to the --exclude option.

Backport of cf2f6fc558166656f29609e3864df9af81067d0c from main

comment:5 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

In 6eb01cb0:

[3.1.x] Fixed #32576 -- Corrected dumpdata docs for passing model names to the --exclude option.

Backport of cf2f6fc558166656f29609e3864df9af81067d0c from main

Note: See TracTickets for help on using tickets.
Back to Top