jpwatts / django-positions

A Django field for custom model ordering.
BSD 3-Clause "New" or "Revised" License
284 stars 71 forks source link

`Manager.get_query_set` method renamed to `get_queryset` #33

Closed mx-moth closed 9 years ago

mx-moth commented 10 years ago

Django 1.7 has renamed the Manager.get_query_set to get_queryset. Using the old get_query_set now raises a deprecation warning.

/home/tim/programs/python/tfs-roster/venv/lib/python3.4/site-packages/positions/managers.py:31: RemovedInDjango18Warning: `PositionManager.get_query_set` method should be renamed `get_queryset

I have seen some projects rename get_query_set to get_queryset for forwards compatibility, and then add get_query_set = get_queryset directly underneath to keep compatibility with old Django code.

forrestp commented 9 years ago

Fixed here, backwards compatibility added here

mx-moth commented 9 years ago

Thanks