mardi 7 février 2017

Django: tweak AdminDateWidget

Vote count: 0

Django AdminDateWidget by default displays "today" shortcut between date field and calendar icon. I want to remove this shortcut. I guess, this should be done via overriding some "render" method or smth like this, but I failed to find where this shortcut is rendered.

AdminDateWidget derives from DateInput, derived from DateTimeBaseInput, derived from Input. No sign of render process nowhere.

Where all this stuff is rendered and how do you know that? :)

asked 46 secs ago

Let's block ads! (Why?)



Django: tweak AdminDateWidget

Aucun commentaire:

Enregistrer un commentaire