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

label_format does not see Generic Chooser #70

Open
rgs258 opened this issue Apr 18, 2023 · 0 comments
Open

label_format does not see Generic Chooser #70

rgs258 opened this issue Apr 18, 2023 · 0 comments

Comments

@rgs258
Copy link

rgs258 commented Apr 18, 2023

It looks like that when a ChooserBlock (or subclass) is within a StructBlock, the selected object's label is not able to contribute to getTextLabel (I think?) and so the next block is looked to for the StructBlock's label. When a ChooserBlock is specified explicitly in label_format, then null is given as the name in the editor. Seems like somehow getTextLabel just needs to see the result of get_title on the AdminChooser. ...I'd try to get you a PR, but I just don't have the time to go any deeper. Very much appreciate all the work you put into this!

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

No branches or pull requests

1 participant