DateTimeShortcut.js in admin, date picker not triggering 'change'..

2016-10-19 Thread hagan
Hi, I'm not sure if this is the correct approach or not.. But i'm finding the trigger event in the DateTimeShortcut.js is not triggering changes when you click on a date. I've done something similar to the following: *admin.py* class CustomAdmin(admin.ModelAdmin): ... class Media:

Extra Column, change_list newforms view in admin. recursion issues....

2010-07-07 Thread hagan
I'm hoping somebody has run into this issue before, failing that, perhaps someone can see a glaring mistake in my code.. I'm getting a recursive loop somehow while following the example: http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowdoIaddanextracolumntothechangelistview In the __init__.p

Re: Django + user profile admin inlines = breakage

2009-07-02 Thread hagan
Ah, got this working It helps to put admin stuff in the admin.py file. I was doing to much in the models.py file and after spending a moment to separate admin/model/forms everything started to work magically... Possibly because I added "admin.autodiscover()" --~--~-~--~~--

Django + user profile admin inlines = breakage

2009-07-01 Thread hagan
I'm using python 2.6.2, django 1.1-beta-1 with mod_wsgi 2.5 So this very well could be a beta bug... I'm having a strange problem, which I've tracked down to my UserProfile model... well, the admin interface. Basically I'm trying to do something like this (Simplified from working model)