justinmayer / django-autoslug

AutoSlugField for Django. Supports (but not does not require) unidecode/pytils for transliteration. Old issue tracker is at Bitbucket: https://bitbucket.org/neithere/django-autoslug/issues

Home Page:https://readthedocs.org/projects/django-autoslug/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django 1.10 compatibility

MattFisher opened this issue · comments

autoslug.utils.get_uniqueness_lookups uses _meta.get_field_by_name, which is deprecated in Django 1.9 and removed in Django 1.10 (shows up when running Django 1.8 with the -Wall python flag):

.../python2.7/site-packages/autoslug/utils.py:119: RemovedInDjango110Warning: 'get_field_by_name is an unofficial API that has been deprecated. You may be able to replace it with 'get_field()'
    field_object, model, direct, m2m = instance._meta.get_field_by_name(field_name)

What's the status of this?

Resolved in #16, just waiting for commentary or merge by project owner.

Can we close this issue now ?

@jpic:

I'd say, it's fixed when a new version containing the fix is released. Asking people to use master branch or certain commit it dirty.

@neithere any news on this? This is really breaking Django 1.10+ compatibility. I get that you're busy on other stuff, so is there anyone else with enough privileges that can create the new version?

django-autoslug v1.9.4, which should now support Django 1.10, 1.11, and 2.0+, has been released and published to PyPI. The documentation will be updated once ownership of the corresponding ReadTheDocs project has been transferred. (Link to transfer request)

Thanks to everyone for your patience! 🎉