1 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from django.db import models
5 from django.utils.translation import gettext_lazy as _
8 class Project(models.Model):
9 """ A project, tracked for funding purposes. """
11 name = models.CharField(_('name'), max_length=255, unique=True)
12 notes = models.TextField(_('notes'), blank=True, null=True)
13 logo = models.FileField(upload_to='projects', blank=True)
14 logo_mono = models.FileField(upload_to='logo_mono', help_text='white on transparent', blank=True)
15 logo_alt = models.CharField(max_length=255, blank=True)
18 app_label = 'documents'
20 verbose_name = _('project')
21 verbose_name_plural = _('projects')