mirror of https://github.com/snachodog/mybuddy.git
Fix lint errors
This commit is contained in:
parent
5c45b037f0
commit
b9e98b16a2
|
@ -132,7 +132,6 @@ class Command(BaseCommand):
|
||||||
self._add_bmi_entry()
|
self._add_bmi_entry()
|
||||||
last_bmi_entry_time = self.time
|
last_bmi_entry_time = self.time
|
||||||
|
|
||||||
|
|
||||||
@transaction.atomic
|
@transaction.atomic
|
||||||
def _add_breastpump_entry(self):
|
def _add_breastpump_entry(self):
|
||||||
"""
|
"""
|
||||||
|
@ -149,7 +148,6 @@ class Command(BaseCommand):
|
||||||
child=self.child, amount=self.amount, time=self.time, notes=notes
|
child=self.child, amount=self.amount, time=self.time, notes=notes
|
||||||
).save()
|
).save()
|
||||||
|
|
||||||
|
|
||||||
@transaction.atomic
|
@transaction.atomic
|
||||||
def _add_diaperchange_entry(self):
|
def _add_diaperchange_entry(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('core', '0018_bmi_headcircumference_height'),
|
("core", "0018_bmi_headcircumference_height"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
|
|
@ -181,9 +181,7 @@ class Breastpump(models.Model):
|
||||||
related_name="breastpump",
|
related_name="breastpump",
|
||||||
verbose_name=_("Child"),
|
verbose_name=_("Child"),
|
||||||
)
|
)
|
||||||
amount = models.FloatField(
|
amount = models.FloatField(blank=False, null=False, verbose_name=_("Amount"))
|
||||||
blank=False, null=False, verbose_name=_("Amount")
|
|
||||||
)
|
|
||||||
time = models.DateTimeField(blank=False, null=False, verbose_name=_("Time"))
|
time = models.DateTimeField(blank=False, null=False, verbose_name=_("Time"))
|
||||||
notes = models.TextField(blank=True, null=True, verbose_name=_("Notes"))
|
notes = models.TextField(blank=True, null=True, verbose_name=_("Notes"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue