Update models.py

Allow ranking with local fields.
Merge pull request #16 from mulder999/patch-1

Update models.py