示例#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