This code was taken from:
https://github.com/dokterbob/django-docdata

author: Mathijs de Bruin <mathijs@mathijsfietst.nl>

The author has stated in an email that this code is licenced under the 
AGPL licence, which is included with this software

