Fix Graphs
Closes #238 (closed) Closes #237 (closed) Closes #281 (closed)
Demo: https://miskolc.cloud.bme.hu:18525/dashboard/node/list/
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
570 raise NotImplementedError("Subclass must implement abstract method") 571 572 def get_object(self, request, pk): 573 instance = self.model.objects.get(id=pk) 574 if not instance.has_level(request.user, 'user'): 575 raise PermissionDenied() 576 return instance 538 class GraphMixin(object): 539 graph_time_options = [ 540 {'time': "1h", 'name': _("1 hour")}, 541 {'time': "1d", 'name': _("1 day")}, 542 {'time': "1w", 'name': _("1 week")}, 543 {'time': "30d", 'name': _("1 month")}, 544 {'time': "26w", 'name': _("6 months")}, 545 ] 546 default_graph_time = "6h" -
Owner
why isn't this in the list and displayed concretely on the button?
-