Advertisement
herizo

Untitled

Oct 15th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.77 KB | None | 0 0
  1. class Target(models.Model):
  2.   year = models.DateField(verbose_name="année")
  3.   section = models.ForeignKey(Section, on_delete=models.CASCADE, verbose_name="section")
  4.   population_in_need = models.IntegerField(verbose_name="population dans le besoin")
  5.   children_in_need = models.IntegerField(verbose_name="enfants dans le besoin")
  6.   targeted_people = models.IntegerField(verbose_name="personnes ciblées")
  7.   targeted_children = models.IntegerField(verbose_name="enfants ciblés")
  8.   funding_required = models.DecimalField(max_digits=10, decimal_places=2, verbose_name="financement requis")
  9.   funding_received = models.DecimalField(max_digits=10, decimal_places=2, verbose_name="financement reçu")
  10.  
  11.   def __str__(self):
  12.       return f"Target for {self.year} - {self.section}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement