-
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
946f006
commit 9ed4363
Showing
11 changed files
with
1,009 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
684 changes: 684 additions & 0 deletions
684
babybuddy/migrations/0033_alter_settings_language_and_more.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
core/migrations/0035_child_number_of_naps_child_wake_window.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 5.0.6 on 2024-06-03 10:45 | ||
|
||
import core.models | ||
import django_enumfield.db.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0034_alter_tag_options"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="child", | ||
name="number_of_naps", | ||
field=django_enumfield.db.fields.EnumField( | ||
default=1, enum=core.models.Child.NumberOfNaps | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="child", | ||
name="wake_window", | ||
field=models.DurationField( | ||
blank=True, null=True, verbose_name="Wake Window" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends 'cards/base.html' %} | ||
{% load duration i18n %} | ||
{% block header %} | ||
<a href="{% url "core:sleep-list" %}">{% trans "Next Sleep" %}</a> | ||
{% endblock %} | ||
{% block title %} | ||
{% if predicted_start %} | ||
{% blocktrans trimmed with start=predicted_start|deltasince|duration_string:'m' time=predicted_start|time %} | ||
<div>{{ start }} from now</div> | ||
<small>{{ time }}</small> | ||
{% endblocktrans %} | ||
{% else %} | ||
{% trans "None" %} | ||
{% endif %} | ||
{% endblock %} | ||
{% block content %}{{ sleep.duration|duration_string }}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.