Making the views be compatible with django 1.4
version 0.1.9