from django.db import models

class AidMonetary(models.Model):
	company = models.CharField(max_length=250)
	budget = models.FloatField()
	year = models.CharField(max_length=4)
	country = models.ForeignKey('CallsRegisters.Country', related_name='aids', on_delete=models.CASCADE)

	class Meta:
		ordering = ('year', '-budget',)

	def add_budget(self, value):
		self.budget += value
		self.save()
cc616916b51c547fadfa85d7a781277cd04f6e90
<mask token>


class AidMonetary(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        ordering = 'year', '-budget'
    <mask token>

<mask token>


class AidMonetary(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        ordering = 'year', '-budget'

    def add_budget(self, value):
        self.budget += value
        self.save()

<mask token>


class AidMonetary(models.Model):
    company = models.CharField(max_length=250)
    budget = models.FloatField()
    year = models.CharField(max_length=4)
    country = models.ForeignKey('CallsRegisters.Country', related_name=
        'aids', on_delete=models.CASCADE)


    class Meta:
        ordering = 'year', '-budget'

    def add_budget(self, value):
        self.budget += value
        self.save()

from django.db import models


class AidMonetary(models.Model):
    company = models.CharField(max_length=250)
    budget = models.FloatField()
    year = models.CharField(max_length=4)
    country = models.ForeignKey('CallsRegisters.Country', related_name=
        'aids', on_delete=models.CASCADE)


    class Meta:
        ordering = 'year', '-budget'

    def add_budget(self, value):
        self.budget += value
        self.save()

from django.db import models

class AidMonetary(models.Model):
	company = models.CharField(max_length=250)
	budget = models.FloatField()
	year = models.CharField(max_length=4)
	country = models.ForeignKey('CallsRegisters.Country', related_name='aids', on_delete=models.CASCADE)

	class Meta:
		ordering = ('year', '-budget',)

	def add_budget(self, value):
		self.budget += value
		self.save()