fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git@stigma:platforma
[redakcja.git]
/
apps
/
explorer
/
forms.py
diff --git
a/apps/explorer/forms.py
b/apps/explorer/forms.py
index
065a815
..
fd460ac
100644
(file)
--- a/
apps/explorer/forms.py
+++ b/
apps/explorer/forms.py
@@
-1,6
+1,18
@@
from django import forms
from django import forms
+from explorer import models
+
class BookForm(forms.Form):
text = forms.CharField(widget=forms.Textarea)
class BookForm(forms.Form):
text = forms.CharField(widget=forms.Textarea)
+ commit_message = forms.CharField()
+ user = forms.CharField()
+
+
+class ImageFoldersForm(forms.Form):
+ folders = forms.ChoiceField(required=False)
+ def __init__(self, *args, **kwargs):
+ super(ImageFoldersForm, self).__init__(*args, **kwargs)
+ self.fields['folders'].choices = [('', '-- Wybierz folder z obrazkami --')] + [(fn, fn) for fn in models.get_image_folders()]
+