Closed tonioo closed 9 years ago
Thanks for looking into this!
Would you be able to make the change so it's backwards compatible? Maybe in django_nyt.settings put:
USERNAME_FIELD = getattr(settings, 'USERNAME_FIELD', 'username')
..and then use django_nyt.settings
as a compatibility layer.
Backward compatible with what? Django < 1.5 ?
Oh right, Django 1.4 is completely unsupported now, not even documentation is available anymore... nevermind that part then!
Ok. Is there still something that prevents this PR to be merged ?
See commit comment...
https://github.com/benjaoming/django-nyt/pull/16/files#r35203092
Thanks for fixing this, sorry about slowness!
See https://docs.djangoproject.com/en/1.8/topics/auth/customizing/#django.contrib.auth.models.CustomUser.USERNAME_FIELD