fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add publication dates, last change date
[prawokultury.git]
/
migdal
/
forms.py
diff --git
a/migdal/forms.py
b/migdal/forms.py
old mode 100755
(executable)
new mode 100644
(file)
index
5a9d5d0
..
9c87bd1
--- a/
migdal/forms.py
+++ b/
migdal/forms.py
@@
-23,8
+23,12
@@
def get_submit_form(*args, **kwargs):
def __init__(self, *args, **kwargs):
super(SubmitForm, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs):
super(SubmitForm, self).__init__(*args, **kwargs)
- self.fields['title_%s' % lang].required = True
- self.fields['lead_%s' % lang].required = True
+ title = self.fields['title_%s' % lang]
+ title.required = True
+ title.label = _('Title')
+ lead = self.fields['lead_%s' % lang]
+ lead.required = True
+ lead.label = _('Content')
def clean(self):
data = super(SubmitForm, self).clean()
def clean(self):
data = super(SubmitForm, self).clean()