Re: Clearing prefetch related on add(), change(), remove()

2016-06-07 Thread Florian Apolloner
Same feeling as Carl here. I was probably the first to get asked whether or not this was a bug or not on IRC and my initial thought was also "wtf, that is clearly a bug" -- hence I asked Yoong Kang Lim to open a ticket. Cheers, Florian On Tuesday, June 7, 2016 at 7:47:29 PM UTC+2, Carl Meyer

Re: Clearing prefetch related on add(), change(), remove()

2016-06-07 Thread Carl Meyer
On 06/07/2016 06:11 AM, Marc Tamlyn wrote: > I may be "too close" to knowing the implementation of this feature to be > able to comment on whether the behaviour is surprising to most people, > but it doesn't surprise me. It's certainly analogous to that when you do > `MyModel.objects.create()` it

Re: Clearing prefetch related on add(), change(), remove()

2016-06-07 Thread Marc Tamlyn
I may be "too close" to knowing the implementation of this feature to be able to comment on whether the behaviour is surprising to most people, but it doesn't surprise me. It's certainly analogous to that when you do `MyModel.objects.create()` it doesn't change an already executed queryset.

Re: Django and Tika, API

2016-06-07 Thread Florian Apolloner
Hi, this mailing list is for the development of django itself. Please write to django-users instead. Cheers, Florian On Tuesday, June 7, 2016 at 2:25:53 PM UTC+2, Allison A. wrote: > > I am trying to extract a plain text from pdfs using Apache Tika. I can use > a python binding, python-tika,

Clearing prefetch related on add(), change(), remove()

2016-06-07 Thread Yoong Kang Lim
Hi all, I'd like to bring up ticket #26706: https://code.djangoproject.com/ticket/26706 Related managers have methods such as add(), change() and remove() that change database objects. When a prefetch_related is done prior to calling these methods, it does not clear the cache. When the related