cloned from https://bitbucket.org/affan2/django-postman