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' title1 = str(self.title) self.fulltitle = title1 #fulltitle = title = 'QWERTY' self.title = 'sampletext' super(Article, self).save() after all i got: fulltitle = title = 'sampletext' i was expecting to have: fulltitle = 'QWERTY' title = 'sampletext' so - does it mean that i pass reference to an existing object, not a value? Do i miss some fundamental thing about Django? :) Cheers Phil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---