fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
519e566
)
take literary director from settings, not hardcoded
author
Jan Szejko
<janek37@gmail.com>
Tue, 27 Feb 2018 11:56:44 +0000
(12:56 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 27 Feb 2018 11:56:44 +0000
(12:56 +0100)
apps/catalogue/forms.py
patch
|
blob
|
history
diff --git
a/apps/catalogue/forms.py
b/apps/catalogue/forms.py
index
bf51f40
..
5a0b2d5
100644
(file)
--- a/
apps/catalogue/forms.py
+++ b/
apps/catalogue/forms.py
@@
-7,6
+7,7
@@
from catalogue.models import User
from django.db.models import Count
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.db.models import Count
from django import forms
from django.utils.translation import ugettext_lazy as _
+from django.conf import settings
from catalogue.constants import MASTERS
from catalogue.models import Book, Chunk, Image
from catalogue.constants import MASTERS
from catalogue.models import Book, Chunk, Image
@@
-196,7
+197,7
@@
class ReadonlyImageForm(ImageForm):
class MarkFinalForm(forms.Form):
class MarkFinalForm(forms.Form):
- username = forms.CharField(initial=
'lipszyc'
)
+ username = forms.CharField(initial=
settings.LITERARY_DIRECTOR_USERNAME
)
comment = forms.CharField(initial=u'Ostateczna akceptacja merytoryczna przez kierownika literackiego.')
books = forms.CharField(widget=forms.Textarea, help_text=u'linki do książek w redakcji, po jednym na wiersz')
comment = forms.CharField(initial=u'Ostateczna akceptacja merytoryczna przez kierownika literackiego.')
books = forms.CharField(widget=forms.Textarea, help_text=u'linki do książek w redakcji, po jednym na wiersz')