Re: saving an istance of an object then trying to save it and it does not save

2014-05-19 Thread Coulson Thabo Kgathi
Managed to figure it out. In the save method of the object there was some code that resets the values to None On Friday, May 16, 2014 12:52:47 PM UTC+2, Coulson Thabo Kgathi wrote: > > if o get an object like this > > p = Plot.objects.get(plot_plot_identifier='123323423') > > then do > p.select

Re: saving an istance of an object then trying to save it and it does not save

2014-05-16 Thread Mario Gudelj
That should work. Do you get any errors? On 16/05/2014 8:53 pm, "Coulson Thabo Kgathi" wrote: > if o get an object like this > > p = Plot.objects.get(plot_plot_identifier='123323423') > > then do > p.selected=1 > p.save() > > this does not save dont know why. > the is no where the field is being

saving an istance of an object then trying to save it and it does not save

2014-05-16 Thread Coulson Thabo Kgathi
if o get an object like this p = Plot.objects.get(plot_plot_identifier='123323423') then do p.selected=1 p.save() this does not save dont know why. the is no where the field is being modified anywhy not even on the save methon of the Plot model and there are no signals modifying the field at