mirror of https://github.com/snachodog/mybuddy.git
Re-add random color for solid Diaper Changes in `fake` command.
This commit is contained in:
parent
eff1320a5e
commit
4aa51e44da
|
@ -96,6 +96,9 @@ class Command(BaseCommand):
|
|||
solid = choice([True, False, False, False])
|
||||
wet = choice([True, False])
|
||||
color = ''
|
||||
if solid:
|
||||
color = choice(
|
||||
models.DiaperChange._meta.get_field('color').choices)[0]
|
||||
if not wet and not solid:
|
||||
wet = True
|
||||
time = self.time + timedelta(minutes=randint(1, 60))
|
||||
|
|
Loading…
Reference in New Issue