On Sep 24, 8:00 pm, Jorge Romo <[EMAIL PROTECTED]> wrote: > Hello guys, maybe this is a kinda dumb question but i just can't > figure it out! > > I have set to False as default for a is_finished field. If something > is finished it should turn to True, but i just can't make it happen. > Any idea? > > I tried with .objects.update but it updated all my model objects > hahaha. I hope you can help me out > > Thanks in advance
myinstance = MyModel.objects.get(pk=1) # or whatever myinstance.is_finished = True myinstance.save() -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---