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

FIX ModelAdmin::$model_importers alias support #1216

Open
wants to merge 1 commit into
base: 1.8
Choose a base branch
from

Conversation

chillu
Copy link
Member

@chillu chillu commented May 17, 2021

Hasn't been considered when introducing aliases rather than class names in $managed_models.

@chillu
Copy link
Member Author

chillu commented May 21, 2021

Same test failures as upstream

Hasn't been considered when introducing aliases rather than class names
in $managed_models.

Fixed a regression from when we introduced $modelTab.
This is backwards compatible since $modelTab falls back to $modelClass.

Also improved $model_importers to fall back to the default per model,
rather than requiring definition of *all* models on a non-null value.
@chillu chillu force-pushed the pulls/1/modeladmin-csv-modelname-alias branch from 477bb23 to 81cf409 Compare June 25, 2021 02:16
@chillu chillu changed the base branch from 1 to 1.8 June 25, 2021 02:16
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.

1 participant