AntonisRight. I got the tag to appear in the right place but I think
the js itself is not being effective. I guess since there is an existing bug
report I'll just have live with it until magic happens.Thanks for jumping
in.CheersMike --(Unsigned mail from my phone)
Original message From: Antonis Christofides
Date: 15/4/22 01:26 (GMT+10:00) To:
django-users Subject: Re: Possible Django Admin
or auth bug or Mozilla bug
I haven't tried it, but I have a few observations on your
template code. First, it would be better to use "{% static %}"
instead of hardcoding the url to the static files. Second, "{%
blcok extrastyle %}" is obviously wrong for this, it should be
extrajs. However, neither of these should affect what you are
trying to accomplish (except if extrastyle comes earlier than
extrajs).
On 14/04/2022 06.37, Mike Dewhirst
wrote:
On 14/04/2022 11:36 am, Mike Dewhirst
wrote:
Thanks Antonis
OK - the problem has two workarounds. One is to use Chrome.
Two is https://code.djangoproject.com/ticket/33386
which suggests including some javascript to disable Firefox
autocomplete ...
$('form').attr('autocomplete', 'off').each(function () {
this.reset();
});
Can anyone verify that the above javascript will work?
And I cannot because I don't know how to javascript. This is what
I tried ...
/static/admin/js/autocomplete_off.js
$('form').attr('autocomplete', 'off').each(function () {
this.reset();
});
/templates/admin/auth/group/change_form.html
{% extends "admin/change_form.html" %}
{% load i18n admin_urls static admin_modify %}
{% block extrastyle %}{{ block.super }}