Petter Friberg
Petter Friberg
> This PR is a -0 for me. > > In my opinion this just adds another way of doing something that is easily done now. Doing `LazyAttribute(lambda x: bool(x.last_login))`...
Not sure if I'm running in to the [mentioned Caveat](https://phantom-types.readthedocs.io/en/stable/pages/pydantic-support.html#caveats) regarding pydantic and `NonEmpty` below? Or is it a separate issue I'm running in to? (Feels a little bit like...
> I'd be happy to include this. I think it would make sense to implement it in the same way as CountryCode, e.g. a union of a Literal and a...
I haven't dug any deeper into it, actually. I started off with hard coded locale strings to begin with, and haven't attempted to create anything more sophisticated. I agree with...
Yes, I noticed that in the end. But it also forces me to return a `HttpResponse` from `foo`. The idea I had above was about returning e.g. a tuple from...
I just want to complement this issue with a (kind of) minimal example: ```python from typing import Protocol from django.db import models class Person(Protcol): @property def given_name(self) -> str: ......
To throw out another idea; it would've been nice with an approach similar to Django's `user_passes_test`. Though it could come with the adjustment of returning a 403 forbidden response if...
I wouldn't directly say it's related to #1022, unless you're seeing that error too. The error you're seeing was intentionally introduced in #999. I'd start with investigating the types for...
Interesting, I'm pretty certain we have test cases covering non-explicit managers. But I'll double check that. A minimal example would be helpful too!
Hm, one important lead would be what the type the manager is during runtime. @MartinThoma since it's an implicit manager. Could you investigate what type(FooModel.objects) outputs?