a guest Jan 24th, 2020 53 Never
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
RAW Paste Data