mirror of https://github.com/snachodog/mybuddy.git
Don't require wet or solid when generating fake data
This commit is contained in:
parent
123a0192ce
commit
4916a810e0
|
@ -159,8 +159,6 @@ class Command(BaseCommand):
|
||||||
color = ""
|
color = ""
|
||||||
if solid:
|
if solid:
|
||||||
color = choice(models.DiaperChange._meta.get_field("color").choices)[0]
|
color = choice(models.DiaperChange._meta.get_field("color").choices)[0]
|
||||||
if not wet and not solid:
|
|
||||||
wet = True
|
|
||||||
amount = Decimal("%d.%d" % (randint(0, 6), randint(1, 9)))
|
amount = Decimal("%d.%d" % (randint(0, 6), randint(1, 9)))
|
||||||
time = self.time + timedelta(minutes=randint(1, 60))
|
time = self.time + timedelta(minutes=randint(1, 60))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue