more changes to work with older django
more changes to work with older django