Opened 3 years ago

Last modified 5 days ago

#20468 assigned New feature

loaddata - during import exclude some applications

Reported by: fizista Owned by: alexmorozov
Component: Core (Management commands) Version: master
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


Would propose adding this option to the command loaddata:

  -e EXCLUDE, --exclude=EXCLUDE
                        An appname or appname.ModelName to exclude (use
                        multiple --exclude to exclude multiple apps/models).

Sometimes it can be useful if you have a file with data from multiple applications / models, and we want to import only a portion of the data.

Change History (3)

comment:1 Changed 3 years ago by akaariai

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

I am going to mark this accepted. I don't feel strongly in one way or another about this issue, I just want to get this out of unreviewed triage stage.

comment:2 Changed 9 days ago by alexmorozov

  • Owner changed from nobody to alexmorozov
  • Status changed from new to assigned

Seems useful. Recently I've faced a similar problem. Will give it a try.

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