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

Default values handling, if create a new model #532

Open
baumannsven opened this issue May 1, 2020 · 3 comments
Open

Default values handling, if create a new model #532

baumannsven opened this issue May 1, 2020 · 3 comments
Assignees
Milestone

Comments

@baumannsven
Copy link
Member

If create a new model, so the create handler set the default. I think set the default values to the input post parameter should be too.

This has the advantage, for example, if you have a filter for options of a widget that uses the post value.

@baumannsven baumannsven added this to the 2.2.0 milestone May 1, 2020
@baumannsven baumannsven self-assigned this May 1, 2020
@baumannsven baumannsven changed the title Default value handling, if create a new model Default values handling, if create a new model May 1, 2020
@zonky2
Copy link
Contributor

zonky2 commented May 2, 2020

in which use case does this occur?

@baumannsven
Copy link
Member Author

As an example with MetaModels. If you have configured a filter for the options in the attributes, and this filter is filtered by a value.

If this filter is not evaluated for the following reasons:

  • You cannot filter by the post parameter
  • Since the model does not exist at that time, you cannot filter by the value of the model

@baumannsven
Copy link
Member Author

So we add a service, who has a clone of the active model.

@zonky2 zonky2 modified the milestones: 2.2.0, 2.3.0 May 11, 2022
@zonky2 zonky2 modified the milestones: 2.3.0, 2.3.1 Oct 31, 2023
@zonky2 zonky2 modified the milestones: 2.3.1, 2.2.3, 2.4.0 Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants