Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FraudeIndex(FilteredListView):
- filterset_class = HistoryFilter
- model = Control
- template_name = "control/index.html"
- paginate_by = 10
- def get_context_data(self, **kwargs):
- context = super().get_context_data(**kwargs)
- context['username'] = self.request.user
- context['last_file'] = Control.objects.latest('id')
- return context
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement