Fix lint errors

This commit is contained in:
bugbountyguy 2022-03-02 21:07:16 -06:00 committed by Christopher Charbonneau Wells
parent 5c45b037f0
commit b9e98b16a2
4 changed files with 4 additions and 7 deletions

View File

@ -132,7 +132,6 @@ class Command(BaseCommand):
self._add_bmi_entry()
last_bmi_entry_time = self.time
@transaction.atomic
def _add_breastpump_entry(self):
"""
@ -149,7 +148,6 @@ class Command(BaseCommand):
child=self.child, amount=self.amount, time=self.time, notes=notes
).save()
@transaction.atomic
def _add_diaperchange_entry(self):
"""

View File

@ -77,7 +77,7 @@ class BreastpumpAdmin(ImportExportMixin, ExportActionMixin, admin.ModelAdmin):
"amount",
)
resource_class = BreastpumpImportExportResource
class DiaperChangeImportExportResource(ImportExportResourceBase):
class Meta:

View File

@ -3,10 +3,11 @@
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0018_bmi_headcircumference_height'),
("core", "0018_bmi_headcircumference_height"),
]
operations = [

View File

@ -181,9 +181,7 @@ class Breastpump(models.Model):
related_name="breastpump",
verbose_name=_("Child"),
)
amount = models.FloatField(
blank=False, null=False, verbose_name=_("Amount")
)
amount = models.FloatField(blank=False, null=False, verbose_name=_("Amount"))
time = models.DateTimeField(blank=False, null=False, verbose_name=_("Time"))
notes = models.TextField(blank=True, null=True, verbose_name=_("Notes"))