Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Target(models.Model):
- year = models.DateField(verbose_name="année")
- section = models.ForeignKey(Section, on_delete=models.CASCADE, verbose_name="section")
- population_in_need = models.IntegerField(verbose_name="population dans le besoin")
- children_in_need = models.IntegerField(verbose_name="enfants dans le besoin")
- targeted_people = models.IntegerField(verbose_name="personnes ciblées")
- targeted_children = models.IntegerField(verbose_name="enfants ciblés")
- funding_required = models.DecimalField(max_digits=10, decimal_places=2, verbose_name="financement requis")
- funding_received = models.DecimalField(max_digits=10, decimal_places=2, verbose_name="financement reçu")
- def __str__(self):
- return f"Target for {self.year} - {self.section}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement