Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
feat(backend):Add product_8
Browse files Browse the repository at this point in the history
Signed-off-by: raumonmar1 <raumonmar1@alum.us.es>
  • Loading branch information
raumonmar1 committed Dec 13, 2023
1 parent dc1e220 commit 55ecb2a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/TraineerbookApp/management/commands/populate_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ def handle(self, *args, **kwargs):
price=30,
activity=activity_7
)
product_8 = Product.objects.create(
product_hour_init=timezone.now()+ timedelta(hours=1),
product_hour_fin=timezone.now() + timedelta(hours=2),
quantity=5,
price=30,
activity=activity_1
)

# Create Users (if not already created)
user_model = get_user_model()
Expand Down

0 comments on commit 55ecb2a

Please sign in to comment.