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() 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):
""" """

View File

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

View File

@ -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 = [

View File

@ -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"))