2011-07-08 2 views

Trả lời

195

Có.

obj = get_object_or_404(MyModel.objects.select_related(), whatever=whatever)