-
Notifications
You must be signed in to change notification settings - Fork 57
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
[bug] checkboxmultipleselect is a radio #126
Comments
Seconded on this one: This is how
|
I had a second look at this issue. I think we get in some trouble once somebody starts inheriting from any base class, right? I asked GPT to see if I'm missing something, and it suggested
This would cover the case Ross mentioned but once I start inheriting, this doesn't work. So #127 is not working - am I right? Thx for your effort but I think we can close the PR #127. Still, it's a valid issue and I'm open for suggestions. Best from Cologne |
Yep Inheritance would certainly put a spanner in the works!
…On Wed, 4 Dec 2024, 02:31 Ronny V., ***@***.***> wrote:
Hi @rosscdh <https://github.com/rosscdh> and @dpjanes
<https://github.com/dpjanes>!
I had a second look at this issue. I think we get in some trouble once
somebody starts inheriting from any base class, right?
I asked GPT to see if I'm missing something, and it suggested
type(my_class) is MyClass
This would cover the case Ross mentioned but once I start inheriting, this
doesn't work. So #127
<#127> is not
working - am I right?
Thx for your effort but I think we can close the PR #127
<#127>.
Still, it's a valid issue and I'm open for suggestions.
Best from Cologne
Ronny
—
Reply to this email directly, view it on GitHub
<#126 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADA6MQE53GXFQKJXBCUCDL2DXFDHAVCNFSM6AAAAABS6B6RHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJUHA4DQOJXGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
as per https://github.com/django/django/blob/main/django/forms/widgets.py#L839
unfortunately the widget inherits from radioselect which means that isinstance will return true an show a radio select due to the order in https://github.com/django-crispy-forms/crispy-tailwind/blob/main/crispy_tailwind/templates/tailwind/field.html#L20
as is demonstrated here
a working fix would be to test for the class name rather?
The text was updated successfully, but these errors were encountered: