djangosnippets.org: Latest snippets posted by adiqhttps://djangosnippets.org/users/adiq/2014-05-29T14:39:47.185482-05:00adiqCreating custom time entries in Django Date widget
2014-05-29T14:39:47.185482-05:00adiqhttps://djangosnippets.org/snippets/3069/<p>jQuery code for making custom list on Admin page in DateTime widget.
Create new js file in your static folder with this code.</p>
<p>To use add custom js to Admin page like this:</p>
<pre><code>class NiceAdmin(admin.ModelAdmin):
class Media:
js = ('js/adminNice.js',)
</code></pre>
<p>This code will change <strong>all</strong> DateTime widgets on selected page.</p>
Freely redistributable