Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(3) | Call(3) | Derive(0) | Import(0)
src/c/h/chieftain-HEAD/api1/views.py chieftain(Download)
instance = models.Thread.objects.get(**kwargs) else: op_post = models.Post.objects.get(pid=kwargs["id"], thread__section__slug=kwargs["section__slug"]) instance = op_post.thread
src/d/j/django_learning-HEAD/board/views.py django_learning(Download)
def show_post_detail(request, pk): post = Post.objects.get(pk=pk) return render(request, 'board/post_detail.html', {'post': post})
def get_context_data(self, **kwargs): context = super(CommentCreateView, self).get_context_data(**kwargs) context['post'] = Post.objects.get(pk=self.kwargs['pk']) return context