Yes.
obj = get_object_or_404(MyModel.objects.select_related(), whatever=whatever)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!