def get_context_data(self, **kwargs): context = super(RequerimentListView, self).get_context_data() context['breadcrumbs'] = requeriments_breadcrumbs( self.request.session['project_id'], self.kwargs.get('pk'), self.kwargs.get('sprint_id') ) return context
def get_context_data(self, **kwargs): context = super(RequerimentGraphView, self).get_context_data(**kwargs) requeriments = ProjectService.get_project_requeriments(self.request.session.get('project_id', None)) context['requeriments']=requeriments context['breadcrumbs'] = requeriments_breadcrumbs( self.request.session['project_id'], self.kwargs.get('requeriment_id'), self.kwargs.get('sprint_id'), _('Graph'), ) return context
def get_context_data(self, **kwargs): context = super(RequerimentGraphView, self).get_context_data(**kwargs) requeriments = ProjectService.get_project_requeriments( self.request.session.get('project_id', None)) context['requeriments'] = requeriments context['breadcrumbs'] = requeriments_breadcrumbs( self.request.session['project_id'], self.kwargs.get('requeriment_id'), self.kwargs.get('sprint_id'), _('Graph'), ) return context
def get_context_data(self, **kwargs): context = super(RequerimentGraphDetailView, self).get_context_data(**kwargs) requeriment = RequerimentService.get_requeriment(self.request.session.get('project_id', None), self.kwargs['pk']) context['breadcrumbs'] = requeriments_breadcrumbs( self.request.session['project_id'], self.kwargs.get('pk'), self.kwargs.get('sprint_id'), _('Graph'), ) context['dependent_requeriments'] = RequerimentService.get_dependent_requeriments(requeriment) context['depends_on'] = requeriment.depends_on.all() context['requeriment'] = requeriment return context
def get_context_data(self, **kwargs): context = super(RequerimentDetailView, self).get_context_data(**kwargs) requeriment = RequerimentService.get_requeriment(self.request.session.get('project_id', None), self.kwargs['pk']) context['breadcrumbs'] = requeriments_breadcrumbs( self.request.session['project_id'], self.kwargs['pk'], self.kwargs.get('sprint_id') ) context['num_userstories']= RequerimentService.get_num_userstories_from_requeriment(requeriment) context['total_artifacts'] = RequerimentService.get_num_artifacts_from_requeriment(self.request.session.get('project_id', None), requeriment ) context['dependent_requeriments'] = RequerimentService.get_dependent_requeriments(requeriment) context['depends_on'] = requeriment.depends_on.all() context['requeriment']=requeriment return context
def get_context_data(self, **kwargs): context = super(RequerimentGraphDetailView, self).get_context_data(**kwargs) requeriment = RequerimentService.get_requeriment( self.request.session.get('project_id', None), self.kwargs['pk']) context['breadcrumbs'] = requeriments_breadcrumbs( self.request.session['project_id'], self.kwargs.get('pk'), self.kwargs.get('sprint_id'), _('Graph'), ) context[ 'dependent_requeriments'] = RequerimentService.get_dependent_requeriments( requeriment) context['depends_on'] = requeriment.depends_on.all() context['requeriment'] = requeriment return context
def get_context_data(self, **kwargs): context = super(RequerimentDetailView, self).get_context_data(**kwargs) requeriment = RequerimentService.get_requeriment( self.request.session.get('project_id', None), self.kwargs['pk']) context['breadcrumbs'] = requeriments_breadcrumbs( self.request.session['project_id'], self.kwargs['pk'], self.kwargs.get('sprint_id')) context[ 'num_userstories'] = RequerimentService.get_num_userstories_from_requeriment( requeriment) context[ 'total_artifacts'] = RequerimentService.get_num_artifacts_from_requeriment( self.request.session.get('project_id', None), requeriment) context[ 'dependent_requeriments'] = RequerimentService.get_dependent_requeriments( requeriment) context['depends_on'] = requeriment.depends_on.all() context['requeriment'] = requeriment return context
def get_context_data(self, **kwargs): context = super(RequerimentAddFormView, self).get_context_data() context['breadcrumbs'] = requeriments_breadcrumbs( self.request.session['project_id'], self.kwargs.get('pk'), self.kwargs.get('sprint_id'), _('Add')) return context