sdelements/django-security

Django 1.10 generates a warning

sobolevn opened this issue · 2 comments

After just the basic setup from readme this warning is shown. No extra steps are required.

WARNINGS:
security.PasswordExpiry.user: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField.
HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.

Thanks for the update. We will look at making the change.

Gee19 commented

Fixed in #76