Enable Metadata's default option, using user definable functions
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import datetime
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
default_available_functions = {
|
||||
'current_date':datetime.datetime.now().date,
|
||||
}
|
||||
|
||||
AVAILABLE_FUNCTIONS = getattr(settings, 'DOCUMENTS_METADATA_AVAILABLE_FUNCTIONS', default_available_functions)
|
||||
Reference in New Issue
Block a user