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

Changes to the inheritance of forms to support bulk importing #2226

Closed
wants to merge 1 commit into from
Closed

Conversation

0xArsen
Copy link

@0xArsen 0xArsen commented Jul 9, 2018

Fixes: #568 Bulk import custom fields

These changes affect the CSV form classes. Every CSV form class that is related to a model that supports custom fields will inherit from CustomFieldForm instead of forms.ModelForm.

@0xArsen
Copy link
Author

0xArsen commented Jul 17, 2018

@jeremystretch Could you take a look at this? Thx

@jeremystretch
Copy link
Member

There's way more involved here than simply changing the model form. You'd need to dynamically generate the CSV headers for every model, include them on the UI, adopt CSVChoiceField for choice fields, and probably lots more.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bulk import custom fields
2 participants