I have a model called coupon with a foreign realation to Course model. I need to create multiple coupons with coupon model. Let's say if the count is 50 then it should save 50 coupons in the database. Can I achieve that using bulk_create() method and how to do that. Also I'm using Django Rest Framework
class Coupon(models.Model):
course = models.ForeignKey(Course, on_delete=models.CASCADE, null=True)
expire_date = models.DateTimeField(verbose_name="expire_date", default=now())
Thank you!