change datetimefield to datefield
fixed problem with getting pages-1
Merge pull request #4 from skygate/develop

Develop