fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Source fixes: avoid race and wait a minute after uploading to prevent unnecessary...
[redakcja.git]
/
src
/
documents
/
models
/
project.py
diff --git
a/src/documents/models/project.py
b/src/documents/models/project.py
index
f0ac752
..
7e9cf30
100644
(file)
--- 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
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django.db import models
-from django.utils.translation import
u
gettext_lazy as _
+from django.utils.translation import gettext_lazy as _
class Project(models.Model):
class Project(models.Model):
@@
-10,6
+10,9
@@
class Project(models.Model):
name = models.CharField(_('name'), max_length=255, unique=True)
notes = models.TextField(_('notes'), blank=True, null=True)
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)
class Meta:
app_label = 'documents'
class Meta:
app_label = 'documents'