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
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'
>
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)
> ...
>
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'
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)
> ...
>
>
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'
6 matches
Mail list logo