Got it: update = Queue.objects.get(message=message_id) update.read = 1 update.save()
I thinks this is the correct way, if not somebody can advise me another ;) On Nov 14, 11:37 am, "tinti" <[EMAIL PROTECTED]> wrote: > Hi all, > I need some help updating a database field. Can someone post me an > example on updating a database field using the views.py and a static > value to update. For example each time an item is requested set the > field read to 1. I have to build something similar. > > Thanks for any reply > > tinti --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---