If I have a Django model like:
class Example(models.Model):
is_in_stackoverflow = models.BooleanField()
and I try to filter said model like:
Example.objects.filter(is_in_stackoverflow=True)
My IDE (Pycharm to be specific) knows to offer me other kwargs based on the fields I specific for my model (for this case it might offer me is_in_stackoverlow__in or is_in_stackoverlow__isnull)
I would like to replicate this functionality in a library I am writing. I tried looking into the django source code but was unable to figure this magic out.