2008/8/23 Viktor Nagy <[EMAIL PROTECTED]>: > I just noticed that > > yourqueryset[0].save() > > is not the same as > > yourqueryset0 = yourqueryset[0] > yourqueryset0.save() > > at least the first didn't gave the expected outcome for me > > see the attached test (it is enough to look at app/tests.py) > > is this true or both my test and real code are simply wrong? I was > kinda shocked from this > > V >
It seems that yourqueryset[0] gives always the original one object, stored in DB. e.g. each time SELECT is called and no fields are changed at save() point. vitja. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---