I have these models:
class Foo(models.Model):
some_field = models.CharField()
class Meta:
pass
class Bar(Foo):
some_other_field = models.CharField()
class Meta:
pass
The example is simplified, in fact, both models have many fields.
When I request Bar, Django ORM creates a request containing an internal connection to Foo.
I do not need information in Foo.
Question : Is there a way to request Bar without internally connecting to Foo?
I understand that removing a bar that extends Foo and makes it a foreign key would be the best way to solve this problem. However, there is a lot of legacy code based on this, so I would prefer a quick solution until I have the time and courage to reorganize the outdated parts of the application.
I also understand that I can write the SQL query myself, but I would prefer a solution using ORM.