Initial commit to support filename generators
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -5,11 +5,20 @@ from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from mayan.apps.acls.models import AccessControlList
|
||||
|
||||
from ..classes import BaseDocumentFilenameGenerator
|
||||
from ..models import DocumentType, DocumentTypeFilename
|
||||
|
||||
__all__ = ('DocumentTypeFilteredSelectForm', 'DocumentTypeFilenameForm_create')
|
||||
|
||||
|
||||
class DocumentTypeForm(forms.ModelForm):
|
||||
#filename_generator = forms.
|
||||
|
||||
class Meta:
|
||||
fields = ('label', 'filename_generator')
|
||||
model = DocumentType
|
||||
|
||||
|
||||
class DocumentTypeFilteredSelectForm(forms.Form):
|
||||
"""
|
||||
Form to select the document type of a document to be created. This form
|
||||
|
||||
Reference in New Issue
Block a user