Skip to content

Instantly share code, notes, and snippets.

@mekhami
Created August 15, 2015 02:26
Show Gist options
  • Save mekhami/8ee12ec37d6c3a4ab6af to your computer and use it in GitHub Desktop.
Save mekhami/8ee12ec37d6c3a4ab6af to your computer and use it in GitHub Desktop.
class ProjectDisplay(LoginRequiredMixin, DetailView):
model = Project
context_object_name = 'project'
def get_context_data(self, **kwargs):
context = super(ProjectDisplay, self).get_context_data(**kwargs)
context['form'] = ServiceTypeForm()
return context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment