Created
August 15, 2015 02:26
-
-
Save mekhami/8ee12ec37d6c3a4ab6af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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