# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^reports/changes/lifetimes/(?P<slug>[^/.]+)/$',
        views.DiaperChangeLifetimesChildReport.as_view(),
        name='report-diaperchange-lifetimes-child'),
    url(r'^reports/changes/types/(?P<slug>[^/.]+)/$',
        views.DiaperChangeTypesChildReport.as_view(),
        name='report-diaperchange-types-child'),

    url(r'^reports/sleep/pattern/(?P<slug>[^/.]+)$',
        views.SleepPatternChildReport.as_view(),
        name='report-sleep-pattern-child'),
    url(r'^reports/sleep/totals/(?P<slug>[^/.]+)$',
        views.SleepTotalsChildReport.as_view(),
        name='report-sleep-totals-child'),

    url(r'^reports/timeline/(?P<slug>[^/.]+)$',
        views.TimelineChildReport.as_view(),
        name='report-timeline-child'),
]

# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^children/(?P<slug>[^/.]+)/reports/changes/lifetimes/$',
        views.DiaperChangeLifetimesChildReport.as_view(),
        name='report-diaperchange-lifetimes-child'),
    url(r'^children/(?P<slug>[^/.]+)/reports/changes/types/$',
        views.DiaperChangeTypesChildReport.as_view(),
        name='report-diaperchange-types-child'),

    url(r'^children/(?P<slug>[^/.]+)/reports/sleep/pattern/$',
        views.SleepPatternChildReport.as_view(),
        name='report-sleep-pattern-child'),
    url(r'^children/(?P<slug>[^/.]+)/reports/sleep/totals/$',
        views.SleepTotalsChildReport.as_view(),
        name='report-sleep-totals-child'),

    url(r'^children/(?P<slug>[^/.]+)/reports/timeline/$',
        views.TimelineChildReport.as_view(),
        name='report-timeline-child'),
]

Change reports URLs to extend from /children/<slug>.
Change reports URLs to extend from /children/<slug>.
