Correct mistyped view name.

This commit is contained in:
Christopher Charbonneau Wells 2018-05-20 14:42:14 -07:00
parent 08488af718
commit c2724cd918
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ urlpatterns = [
), ),
path( path(
'children/<slug:slug>/reports/weight/weight/', 'children/<slug:slug>/reports/weight/weight/',
views.WeightWeightChildReoport.as_view(), views.WeightWeightChildReport.as_view(),
name='report-weight-weight-child' name='report-weight-weight-child'
), ),
] ]

View File

@ -117,7 +117,7 @@ class SleepTotalsChildReport(PermissionRequired403Mixin, DetailView):
return context return context
class WeightWeightChildReoport(PermissionRequired403Mixin, DetailView): class WeightWeightChildReport(PermissionRequired403Mixin, DetailView):
""" """
Graph of weight change over time. Graph of weight change over time.
""" """
@ -126,7 +126,7 @@ class WeightWeightChildReoport(PermissionRequired403Mixin, DetailView):
template_name = 'reports/weight_change.html' template_name = 'reports/weight_change.html'
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(WeightWeightChildReoport, self).get_context_data( context = super(WeightWeightChildReport, self).get_context_data(
**kwargs) **kwargs)
child = context['object'] child = context['object']
objects = models.Weight.objects.filter(child=child) objects = models.Weight.objects.filter(child=child)