Make Django requirement string valid