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()
|
||||
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):
|
||||
"""
|
||||
|
|
|
@ -77,7 +77,7 @@ class BreastpumpAdmin(ImportExportMixin, ExportActionMixin, admin.ModelAdmin):
|
|||
"amount",
|
||||
)
|
||||
resource_class = BreastpumpImportExportResource
|
||||
|
||||
|
||||
|
||||
class DiaperChangeImportExportResource(ImportExportResourceBase):
|
||||
class Meta:
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -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"))
|
||||
|
||||
|
|
Loading…
Reference in New Issue