Matthew Schinckel

Results 87 comments of Matthew Schinckel

What does `git diff --cached` do?

Ah, gotcha. There's no direct equivalent in mercurial: but only in the sense there is no staging area: `hg diff` is (AIUI) the same. But I guess that makes it...

That's a really good point: in fact I think the django docs explicitly call out overriding the default manager as potentially dangerous behaviour. I think if it was to be...

The problem with something like `.with_deleted()` is that it’s not very easy within the scope of a queryset to “undo” a previously applied filter. And since queryset methods chain, you’d...

I have resolved this in my branch of django-jsonfield.

Okay, I have a work in progress: however it will likely change the existing decorators to use contextlib.ContextDecorator (and contextlib.AsyncContextDecorator). Is that going to be acceptable?

Actually, looking at the code, it seems it already uses a subclass of that (via django.test.utils.TestContextDecorator). I think I'll need to do more digging to find out how to make...

Turned out the simplest thing to do was to wrap the test (inside the application of the waffle decorator), like show at the bottom of the section https://docs.djangoproject.com/en/5.0/topics/testing/tools/#testing-asynchronous-code

That doesn't work for my use-case: form_list is supplied on the class, but dynamically updated based on previous data. Specifically, it injects duplicates of form Y (with different data) n...