def index(request): ctx = {'entry': get('Data App'), 'hierarchy': get('Data Hierarchy'), 'categories': get('Data Categories'), 'tags': get('Data Tags')} return render_to_response('data/index.html', ctx, context_instance=RequestContext(request))
def index(request): ctx = { 'entry': get('Data App'), 'hierarchy': get('Data Hierarchy'), 'categories': get('Data Categories'), 'tags': get('Data Tags') } return render_to_response('data/index.html', ctx, context_instance=RequestContext(request))
def get_context_data(self, **kwargs): context = super(EntryList, self).get_context_data(**kwargs) context['form'] = FilterForm(initial={'filter': EntryList.query}) context['filterset'] = self.filterset context['entry'] = get('Data Entries') context['count'] = self.count return context
def hierarchy(request, template='data/hierarchy.html'): ctx = {'entry': get('Data Hierarchy'), 'entries': Entry.objects.filter(published=True)} return render(request, template, ctx)
def get_context_data(self, **kwargs): context = super(HierarchyList, self).get_context_data(**kwargs) context['entry'] = get('Data Hierarchy') return context
def get_context_data(self, **kwargs): context = super(TagList, self).get_context_data(**kwargs) context['entry'] = get('Data Tags') return context
def get_context_data(self, **kwargs): context = super(AlterationList, self).get_context_data(**kwargs) context['entry'] = get('Alterations') return context
def get_context_data(self, **kwargs): context = super(Entries, self).get_context_data(**kwargs) context['entry'] = get('Data Entries') return context
def get_context_data(self, **kwargs): context = super(CategoryList, self).get_context_data(**kwargs) context['entry'] = get('Data Categories') return context
def get_context_data(self, **kwargs): context = super(ChangeList, self).get_context_data(**kwargs) context['entry'] = get('Changes') return context
def hierarchy(request, template='data/hierarchy.html'): ctx = { 'entry': get('Data Hierarchy'), 'entries': Entry.objects.filter(published=True) } return render(request, template, ctx)