Skip to content

Implement selectable fields for admin export view - #1538 #1734

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

Merged

Conversation

cocorocho
Copy link
Contributor

@cocorocho cocorocho commented Jan 9, 2024

resolves #1538

Problem

What problem have you solved?
Implement new feature selectable export fields for admin view.

Solution

How did you solve the problem?
Create new form SelectableFieldsExportForm which creates boolean fields for each resource.

Acceptance Criteria

Have you written tests? Have you included screenshots of your changes if applicable?
Yes

Did you document your changes?
To some extend,
Official documentation is not quite up to date.

  • Export View
    image

  • Export Result
    image

  • Any field selected validation
    image

@cocorocho cocorocho changed the title Implement selectable fields for admin export view - #1538 Implement selectable fields for admin export view - resolves #1538 Jan 9, 2024
@cocorocho cocorocho changed the title Implement selectable fields for admin export view - resolves #1538 Implement selectable fields for admin export view - #1538 Jan 9, 2024
Copy link
Contributor

@matthewhegarty matthewhegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good, thanks so much for adding this.

I have gone through it and I only have some minor points.

@matthewhegarty matthewhegarty linked an issue Jan 9, 2024 that may be closed by this pull request
@matthewhegarty
Copy link
Contributor

@cocorocho would you be ok with me adding some documentation updates to this PR?

@matthewhegarty
Copy link
Contributor

I added some documentation updates.

Copy link
Contributor

@matthewhegarty matthewhegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One comment re semicolons in JS.

Copy link
Contributor

@matthewhegarty matthewhegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for all your hard work in adding this amazing feature 👍

@matthewhegarty matthewhegarty merged commit 0151e59 into django-import-export:release-4 Jan 11, 2024
@cocorocho
Copy link
Contributor Author

Thank you for all your hard work in adding this amazing feature 👍

Glad to help 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Allow selectable fields for export in UI
2 participants