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)
16 private_notes = models.TextField(blank=True, verbose_name='Prywatne notatki')
17 can_sell = models.BooleanField(default=True, verbose_name='Do sprzedaży')
20 app_label = 'documents'
22 verbose_name = _('project')
23 verbose_name_plural = _('projects')