Added a direct rename field to the local update and staging upload forms

This commit is contained in:
Roberto Rosario
2011-04-20 05:00:10 -04:00
parent ea25872cbc
commit 0e090798ba
2 changed files with 6 additions and 2 deletions

View File

@@ -131,6 +131,8 @@ class DocumentForm(forms.ModelForm):
model = Document
exclude = ('description',)
new_filename = forms.CharField(label=_('New document filename'), required=False)
class DocumentPreviewForm(forms.Form):
def __init__(self, *args, **kwargs):
@@ -171,8 +173,6 @@ class DocumentForm_edit(DocumentForm):
model = Document
exclude = ('file', 'document_type')
new_filename = forms.CharField(label=_(u'New document filename'), required=False)
class StagingDocumentForm(forms.Form):
def __init__(self, *args, **kwargs):
@@ -192,6 +192,7 @@ class StagingDocumentForm(forms.Form):
label=_(u'Quick document rename'))
staging_file_id = forms.ChoiceField(label=_(u'Staging file'))
new_filename = forms.CharField(label=_('New document filename'), required=False)
class DocumentTypeSelectForm(forms.Form):