I cannot figure out how to update a foreign key to a null value. Thanks. models.py ======== group = models.ForeignKey(group, null=True, blank=True)
>>> from redirect.models import * >>> Links = Link.objects.filter(group = 6) >>> Links.update(group = NULL) Traceback (most recent call last): File "<console>", line 1, in ? NameError: name 'NULL' is not defined >>> Links.update(group = 'NULL') ... ProgrammingError: invalid input syntax for integer: "NULL" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---