Re: Model save() weird behaviour

2009-07-22 Thread Phil
Thanks Brian, 'QWERTY' goes from the form entry here...but that's not important as issue is located somewhere else, precisely save is called twice... apologise for that Cheers, Philip On Jul 21, 2:52 pm, Brian May wrote: > On Thu, Jul 16, 2009 at 04:09:36AM

Re: Model save() weird behaviour

2009-07-20 Thread Brian May
On Thu, Jul 16, 2009 at 04:09:36AM -0700, Phil wrote: > def save(): ># title is received from a form, say i've entered 'QWERTY' > title1 = str(self.title) > self.fulltitle = title1 > #fulltitle = title = 'QWERTY' > self.title = 'sampletext' >

Re: Model save() weird behaviour

2009-07-20 Thread Phil
anyone? any ideas? :) On Jul 17, 11:00 am, Phil wrote: > oh, sorry for that - exampling mistake, should be: > > class Page(models.Model): >     title = models.CharField(_(u"Title"), max_length=50) >     fulltitle = models.CharField(_(u"Full Title"), max_length=50) > ... >

Re: Model save() weird behaviour

2009-07-16 Thread Phil
oh, sorry for that - exampling mistake, should be: class Page(models.Model): title = models.CharField(_(u"Title"), max_length=50) fulltitle = models.CharField(_(u"Full Title"), max_length=50) ... def save(): # title is received from a form, say i've entered 'QWERTY'

Re: Model save() weird behaviour

2009-07-16 Thread Karen Tracey
On Thu, Jul 16, 2009 at 7:09 AM, Phil wrote: > > Hi All, > > noticed an interesting behaviour in model save: > > class Page(models.Model): >title = models.CharField(_(u"Title"), max_length=50) >fulltitle = models.CharField(_(u"Full Title"), max_length=50) > ... > >

Model save() weird behaviour

2009-07-16 Thread Phil
Hi All, noticed an interesting behaviour in model save: class Page(models.Model): title = models.CharField(_(u"Title"), max_length=50) fulltitle = models.CharField(_(u"Full Title"), max_length=50) ... def save(): # title is received from a form, say i've entered 'QWERTY'