Merged document upload code and moved it to the model, improved method of handling compressed file
This commit is contained in:
@@ -3,6 +3,7 @@ import re
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.utils.translation import ugettext
|
||||
|
||||
|
||||
# From http://www.peterbe.com/plog/whitelist-blacklist-logic
|
||||
def accept_item(value, whitelist, blacklist, default_accept=True):
|
||||
""" return true if this item is either whitelisted or
|
||||
|
||||
Reference in New Issue
Block a user