예제 #1
0
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))
예제 #2
0
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))
예제 #3
0
 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
예제 #4
0
 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
예제 #5
0
def hierarchy(request, template='data/hierarchy.html'):
    ctx = {'entry': get('Data Hierarchy'),
           'entries': Entry.objects.filter(published=True)}
    return render(request, template, ctx)
예제 #6
0
 def get_context_data(self, **kwargs):
     context = super(HierarchyList, self).get_context_data(**kwargs)
     context['entry'] = get('Data Hierarchy')
     return context
예제 #7
0
 def get_context_data(self, **kwargs):
     context = super(TagList, self).get_context_data(**kwargs)
     context['entry'] = get('Data Tags')
     return context
예제 #8
0
 def get_context_data(self, **kwargs):
     context = super(AlterationList, self).get_context_data(**kwargs)
     context['entry'] = get('Alterations')
     return context
예제 #9
0
 def get_context_data(self, **kwargs):
     context = super(Entries, self).get_context_data(**kwargs)
     context['entry'] = get('Data Entries')
     return context
예제 #10
0
 def get_context_data(self, **kwargs):
     context = super(CategoryList, self).get_context_data(**kwargs)
     context['entry'] = get('Data Categories')
     return context
예제 #11
0
 def get_context_data(self, **kwargs):
     context = super(ChangeList, self).get_context_data(**kwargs)
     context['entry'] = get('Changes')
     return context
예제 #12
0
def hierarchy(request, template='data/hierarchy.html'):
    ctx = {
        'entry': get('Data Hierarchy'),
        'entries': Entry.objects.filter(published=True)
    }
    return render(request, template, ctx)
예제 #13
0
 def get_context_data(self, **kwargs):
     context = super(HierarchyList, self).get_context_data(**kwargs)
     context['entry'] = get('Data Hierarchy')
     return context
예제 #14
0
 def get_context_data(self, **kwargs):
     context = super(TagList, self).get_context_data(**kwargs)
     context['entry'] = get('Data Tags')
     return context
예제 #15
0
 def get_context_data(self, **kwargs):
     context = super(AlterationList, self).get_context_data(**kwargs)
     context['entry'] = get('Alterations')
     return context
예제 #16
0
 def get_context_data(self, **kwargs):
     context = super(Entries, self).get_context_data(**kwargs)
     context['entry'] = get('Data Entries')
     return context
예제 #17
0
 def get_context_data(self, **kwargs):
     context = super(CategoryList, self).get_context_data(**kwargs)
     context['entry'] = get('Data Categories')
     return context
예제 #18
0
 def get_context_data(self, **kwargs):
     context = super(ChangeList, self).get_context_data(**kwargs)
     context['entry'] = get('Changes')
     return context