added product id to image path

This commit is contained in:
Sam
2021-03-26 10:16:19 +00:00
parent 7eb4695174
commit 2629292c64
2 changed files with 9 additions and 3 deletions

View File

@@ -35,11 +35,11 @@ class Command(BaseCommand):
def handle(self, *args, **kwargs):
print("Create fake data to populate database\n")
'''
print("Deleting existing Product and Company instances")
Product.objects.all().delete()
Company.objects.all().delete()
'''
# start faker
fake = Faker()
Faker.seed(0)