mirror of https://github.com/snachodog/mybuddy.git
Correct mistyped view name.
This commit is contained in:
parent
08488af718
commit
c2724cd918
|
@ -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'
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue