Relative Content

Tag Archive for pythondjangodjango-rest-framework

Django – Adding more options to AdminTimeWidget

I tried to add more time choices to AdminTimeWidget by overriding DateTimeShortcuts refering to this post also another similar posts on SO. My problems is I am getting Uncaught ReferenceError: DateTimeShortcuts is not defined and jQuery.Deferred exception: DateTimeShortcuts is not defined ReferenceError: DateTimeShortcuts is not defined at HTMLDocument error on console. I am newbie to django, I did not understant why I am getting this error. Here is how I implemented it: