class BonusForConsumption(models.Model): """The BonusForConsumption Model. Products might have bonuses at specific consumptions.""" product = models.ForeignKey("Product", on_delete=models.CASCADE, related_name="bonus_for_consumption") consumption = models.PositiveIntegerField() bonus = models.DecimalField(max_digits=6, decimal_places=2)
<br> ## Running the tests <img align="right" width="165" height="165" title="Size Limit logo" src="https://s3.eu-central-1.amazonaws.com/repository-images/size-limit-logo.png"> `SizeLimit` tests that your repository fits in a tweet. To run tests, just type: