Update models.py

Allow ranking with local fields.