View to serve dumpdata output

2010-09-14 Thread David Somers Harris
Is it possible to write a view which serves the JSON output of dumpdata? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-us

Re: ModelName.objects.none().update() makes changes to db

2010-09-11 Thread David Somers Harris
Ah! I'm still on Ubuntu's release version. Thanks Bruno! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@

Re: ModelName.objects.none().update() makes changes to db

2010-09-10 Thread David Somers Harris
I haven't set a custom manager as far as I'm aware. Here is what happens to me: >>> from cube.books.models import Book >>> no_books = Book.objects.none() >>> Book.objects.all().count() 1667 >>> Book.objects.filter(status='O').count() 1 >>> no_books.update(status='O') 1667 >>> Book.objects.filter(s