Skip to content

Conversation

zorun
Copy link

@zorun zorun commented May 22, 2017

This django package is now compatible with Django 1.8, 1.9, 1.10 and 1.11.

@zorun zorun force-pushed the towards-django-1.11 branch from 08483f5 to 508e537 Compare May 22, 2017 09:59
@zorun zorun force-pushed the towards-django-1.11 branch from 2d82eb6 to 5522c42 Compare May 22, 2017 21:30
Baptiste Jonglez added 4 commits May 22, 2017 23:49
The old syntax has been deprecated in Django 1.8 and does not work anymore
with Django 1.11.

See https://docs.djangoproject.com/en/1.11/releases/1.8/#dictionary-and-context-instance-arguments-of-rendering-functions
…jango's User model

This is better, because it allows django_sshkey to be used in projects
that use a custom User model:

    https://docs.djangoproject.com/en/1.11/topics/auth/customizing/#referencing-the-user-model

Note that there is no migration needed with this change, since the first
migration apparently already references settings.AUTH_USER_MODEL.
on_delete currently defaults to CASCADE (so, there is no functional
change), but this will become a required argument in Django 2.0.

See https://docs.djangoproject.com/en/1.11/ref/models/fields/#django.db.models.ForeignKey.on_delete

Again, no migration is necessary here, because this is the default value.
@zorun
Copy link
Author

zorun commented Jun 11, 2017

For your information, I forked your project, the result is here: https://github.com/zorun/django-simplesshkey/

It's not a "hostile" fork. I simply ran into limitations of django_sshkey, because I have simpler needs. More details here: https://github.com/zorun/django-simplesshkey/#about-django-sshkey-and-django-simplesshkey

Feel free to merge this PR anyway, others may benefit from Django 1.11 support :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants