I just got a new OperationalError message (in the subject line). Exception Type: OperationalError Exception Value: SQL logic error or missing database Exception Location: /home/bob/django-trunk/django/db/backends/ __init__.py in _commit, line 20
The code below has been running fine before. I made some changes in other parts of the code, but not in the part that crashed. And everything else seems to work fine now. ===views.py=== def advance_dates(): orders = Order.objects.all() for order in orders: order.order_date = order.order_date + datetime.timedelta(days=7) order.save() items = InventoryItem.objects.all() for item in items: item.inventory_date = item.inventory_date + datetime.timedelta(days=7) item.save() The order.save() worked fine. The error occured on item.save(), the last line in the code excerpt, when saving InventoryItems. ===models.py=== class InventoryItem(models.Model): producer = models.ForeignKey(Producer) product = models.ForeignKey(Product) inventory_date = models.DateField() I'm using Sqlite3 and Django 0.97-pre-SVN-7519 on Ubunto 7.10. I can save InventoryItems fine from Admin and from other forms. Any clues? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---