﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35644	`AdminDateWidget` and `AdminTimeWidget` do not have `admin/js/core.js` in their `Media`	Michał Pokusa		"While developing an extension for Django I noticed that both `AdminDateWidget` and `AdminTimeWidget` do not have `admin/js/core.js` in their `Media` nor do they inherit it from any parent class.

The `admin/js/core.js`, specifically the `quickElement` function is used inside `admin/js/admin/DateTimeShortcuts.js`, which they both reference.

Usually, this is not an issue as `admin/js/core.js` is referenced in `ModelAdmin.media`, **but nevertheless this seems like it was missed rather than an intended way**. Other admin widget - `FilteredSelectMultiple` - references `admin/js/core.js` together with other scripts needed for it to work.

Wraping it up, I suggest adding `admin/js/core.js` to both `AdminDateWidget` and `AdminTimeWidget` to unify them with `FilteredSelectMultiple`."	Bug	closed	contrib.admin	5.0	Normal	duplicate	media, widgets, admin		Unreviewed	0	0	0	0	1	0
