Re: Ability to change dismissRelatedLookupPopup on my own callback function

2011-06-14 Thread Alex Kamedov
I create ticket and upload patch. https://code.djangoproject.com/ticket/16260 On Tue, Jun 14, 2011 at 5:18 PM, Alex Kamedov wrote: > Thank you for sharing good solution, Gregor! > Your solution works great if you has one related lookup. If you need work > with some related fields you must write

Re: Ability to change dismissRelatedLookupPopup on my own callback function

2011-06-14 Thread Alex Kamedov
Thank you for sharing good solution, Gregor! Your solution works great if you has one related lookup. If you need work with some related fields you must write more javascript code whitch looks like mankey patching. On Tue, Jun 14, 2011 at 4:29 PM, Gregor Müllegger wrote: > Hi I needed to do the s

Re: Ability to change dismissRelatedLookupPopup on my own callback function

2011-06-14 Thread Gregor Müllegger
Hi I needed to do the same in my own projects, however I just decorated the functions which I wanted to modify. Like: original_dismissRelatedLookupPopup = window.dismissRelatedLookupPopup; window.dismissRelatedLookupPopup = function () { // put your own code here ... original_dismissRelate

Re: Ability to change dismissRelatedLookupPopup on my own callback function

2011-06-13 Thread Alex Kamedov
> It might be worth considering if there are any methods for passing a > callback function that are better than GET parameters—though I can't > think of any off the top of my head. > I can't provide better solution too. I look at the django.contrib.admin source. This can be applied only if 'pop'

Re: Ability to change dismissRelatedLookupPopup on my own callback function

2011-06-13 Thread Harris Lapiroff
I think this is a great idea! I would certainly benefit from it. It might be worth considering if there are any methods for passing a callback function that are better than GET parameters—though I can't think of any off the top of my head. H. On Jun 13, 12:16 am, Alex Kamedov wrote: > Hi all! >

Ability to change dismissRelatedLookupPopup on my own callback function

2011-06-12 Thread Alex Kamedov
Hi all! I make integration with warehouse system and want to reuse existing functionality in django.contrib.admin to manage links between this system and catalog on site. I can't get access to warehouse system database, I have only export file. I write some views to represent its items in django a