Re: How to use post_save signal ?

2012-03-04 Thread Nikhil Verma
Hi akaariai I solved my problem by using snippet 1633 FileField/ImageField. Thanks for making my concept in signals. On Sun, Mar 4, 2012 at 7:23 PM, akaariai wrote: > On Sunday, March 4, 2012 3:12:20 PM UTC+2, Nikhil Verma wrote: >> >> Hi akaariai >> >> As you said i will remove the file and l

Re: How to use post_save signal ?

2012-03-04 Thread akaariai
On Sunday, March 4, 2012 3:12:20 PM UTC+2, Nikhil Verma wrote: > > Hi akaariai > > As you said i will remove the file and leave the file in file > system(mistake for writing delete). > Now what i have done is :- > > image: Currently: > images/testimonial-bottom_2.png

Re: How to use post_save signal ?

2012-03-04 Thread Nikhil Verma
Hi akaariai As you said i will remove the file and leave the file in file system(mistake for writing delete). Now what i have done is :- image: Currently: images/testimonial-bottom_2.png Change: Delete this file When you click the link

Re: How to use post_save signal ?

2012-03-04 Thread akaariai
On Sunday, March 4, 2012 12:31:50 PM UTC+2, Nikhil Verma wrote: > > Hi all > > I am using Django-1.2.5 and i want to use post_save signal in the > following problem/task. > > I have :- > models.py > > image = models.ImageField(.) > remove_image = models.BooleanField() > > Now i want :- > >

How to use post_save signal ?

2012-03-04 Thread Nikhil Verma
Hi all I am using Django-1.2.5 and i want to use post_save signal in the following problem/task. I have :- models.py image = models.ImageField(.) remove_image = models.BooleanField() Now i want :- 1) When the user uploads the file , the file path appears on the imageField like this. Curr

Re: How to use post_save signal

2008-11-05 Thread Alex Koshelev
Make `update_stock_status` a free function not `Sale` method. On Wed, Nov 5, 2008 at 12:43, Low Kian Seong <[EMAIL PROTECTED]> wrote: > > My code is here > > http://dpaste.com/88831/ > > It's not working I really don't know why the other part of the > post_save is not even being executed > > On W

Re: How to use post_save signal

2008-11-05 Thread Low Kian Seong
My code is here http://dpaste.com/88831/ It's not working I really don't know why the other part of the post_save is not even being executed On Wed, Nov 5, 2008 at 4:04 PM, Antoni Aloy <[EMAIL PROTECTED]> wrote: > > 2008/11/5 Low Kian Seong <[EMAIL PROTECTED]>: >> >> Dear all, >> >> I am using

Re: How to use post_save signal

2008-11-05 Thread Antoni Aloy
2008/11/5 Low Kian Seong <[EMAIL PROTECTED]>: > > Dear all, > > I am using django to write an a web based sales inventory system for > my client. To this end, I have created two objects in my models which > is : > > Sales and Stock. Everytime a sales is associated with a particular > stock is crea

How to use post_save signal

2008-11-04 Thread Low Kian Seong
Dear all, I am using django to write an a web based sales inventory system for my client. To this end, I have created two objects in my models which is : Sales and Stock. Everytime a sales is associated with a particular stock is created, I want to update the Stock object's status field as 'Sold