Update pagination.py

Changed the properties function to getattr because the properties func will not wirk if you named the datastore property different than the python property name.