> aria-expanded="false"
>
> aria-controls="collapseExample"
> onclick="change_btn(this)"
> >down
onclick="change_btn(this)"
> >{% bs_icon "chevron-down"
> %}
> Op donderdag 15 juli 2021 om 20:56:50 UTC+2 schreef Fab:
>
>> Hi Arno,
>
>
>> You will have to change the buttons valu
lready is:
if (value == 'a') value = 'b'
else value = 'a'
You could pass the chevron values into the Javascript by button the value
in a var on the template:
var chevronDown = {% bs_icon 'chevron-down' %};
Hope this helps.
Fab
On Thursday, 15 July 2021 at 14:35:36 UTC+1 wester...@gmail.com wrote:
>
ck back on to the item to edit it the buttons
work how they should.
I'm not sure if this is a bug with the admin. I've tried it on 2 projects
now. I'm using Django 4.1.
I uploaded a sample project so you can quickly see if the issue happens for
you too.
https://github.com/fabtjar/django_admin_issue
hursday, 4 August 2022 at 08:49:05 UTC+1 Fab wrote:
> Looks like "_addanother" isn't in the request.POST:
> https://github.com/django/django/blob/main/django/contrib/admin/options.py#L1388
>
> The name on the input isn't being passed with the form submit:
> https://github
bug I'd have thought.
>
> If it helps here is the relevant code -
> https://github.com/django/django/blob/main/django/contrib/admin/options.py#L132
> .
>
> def response_add is the method which determines what the response to use
> after a successful addition.
>
> O
6 matches
Mail list logo