Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
e5391246
Commit
e5391246
authored
Jun 12, 2011
by
stef
Browse files
[fix] attachments should now work
parent
0064a799
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/multifile.py
View file @
e5391246
...
...
@@ -12,6 +12,7 @@ from django.forms.fields import Field, EMPTY_VALUES
from
django.core.files.uploadedfile
import
UploadedFile
from
django.forms.widgets
import
FileInput
from
django.forms.util
import
ErrorList
,
ValidationError
,
flatatt
from
django.utils.safestring
import
mark_safe
class
MultiFileInput
(
FileInput
):
"""
...
...
@@ -45,7 +46,7 @@ class MultiFileInput(FileInput):
link
=
self
.
link
(
name
,
value
,
count
,
final_attrs
)
fields
=
self
.
fields
(
name
,
value
,
count
,
final_attrs
)
return
js
+
link
+
fields
return
mark_safe
(
js
+
link
+
fields
)
def
fields
(
self
,
name
,
value
,
count
,
attrs
=
None
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment