-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
[feature] Added command line utility to export users #355 #356
Conversation
5df56d8
to
829b12a
Compare
829b12a
to
de80553
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the test coverage here?
a20759d
to
d76355c
Compare
d76355c
to
b026b2b
Compare
README.rst
Outdated
**Arguments**: | ||
|
||
- `--exclude-fields`: Comma-separated list of fields to exclude from the export. | ||
- `--filename`: Filename for the exported CSV, defaults to "openwisp_exported_users.csv". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide an example with the arguments, eg:
./manage.py export_users
--filename export-excluded-pwd-id.csv --exclude-fields password,id
README.rst
Outdated
- `--filename`: Filename for the exported CSV, defaults to "openwisp_exported_users.csv". | ||
|
||
You can change the exported fields using the `OPENWISP_USERS_EXPORT_USERS_COMMAND_CONFIG | ||
<#openwisp_users_export_users_command_config>`_ setting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure I understand the point of this since users can use the --exclude-fields
flag.
I think it's worth to point out that this setting is meant to be used for advanced customizations.
Closes #355