Здравствуйте подскажите пожалуйста как можно привязать файл к полю?
например есть класс:
class BalanceNoTranse(models.Model):
name = models.CharField(max_length=1000)
year_one = models.DecimalField(
max_digits=100, decimal_places=2, default=Decimal('0.00'), help_text='2014',null=True, blank=True)
year_two = models.DecimalField(
max_digits=100, decimal_places=2, help_text='2015', null=True, blank=True)
year_three = models.DecimalField(
max_digits=100, decimal_places=2, help_text='2016', null=True, blank=True)
year_fourth = models.DecimalField(
max_digits=100, decimal_places=2, help_text='2017', null=True, blank=True)
slug = models.CharField(max_length=10)
project = models.ForeignKey(Project, null=True, blank=True)
quasi = models.ForeignKey(QuasiOrganChild, null=True, blank=True)
например для поля year_one нужно прикрепить один документ excel. к year_two другой excel документ. Спасибо