X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e977f7187b10b1bc0a30794cd585c6b840568996..18948ce1d84878c6307f2d0b732a9dbd03778cfb:/src/documents/models/project.py?ds=sidebyside diff --git a/src/documents/models/project.py b/src/documents/models/project.py index f0ac752f..9efee5a6 100644 --- a/src/documents/models/project.py +++ b/src/documents/models/project.py @@ -2,7 +2,7 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.db import models -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class Project(models.Model): @@ -10,6 +10,11 @@ class Project(models.Model): name = models.CharField(_('name'), max_length=255, unique=True) notes = models.TextField(_('notes'), blank=True, null=True) + logo = models.FileField(upload_to='projects', blank=True) + logo_mono = models.FileField(upload_to='logo_mono', help_text='white on transparent', blank=True) + logo_alt = models.CharField(max_length=255, blank=True) + private_notes = models.TextField(blank=True, verbose_name='Prywatne notatki') + can_sell = models.BooleanField(default=True, verbose_name='Do sprzedaży') class Meta: app_label = 'documents'