Package: python-django-openstack-auth / 2.4.1-2
Metadata
| Package | Version | Patches format |
|---|---|---|
| python-django-openstack-auth | 2.4.1-2 | 3.0 (quilt) |
Patch series
view the series file| Patch | File delta | Description |
|---|---|---|
| Add is_authenticated and is_anonymous properties.patch | (download) |
openstack_auth/user.py |
75 46 + 29 - 0 ! |
add is_authenticated and is_anonymous properties See https://docs.djangoproject.com/en/1.10/releases/1.10/#using-user-is-authenticated-and-user-is-anonymous-as-methods . is_anonymous() and is_authenticated() functions are now properties, and throw critical security warnings when using python manage.py check in django 1.10 . The duplication is just to make it explicit which code paths are being followed. They could be refactored to remove it, but in a few months when we move to the next LTS we would just end up removing the refactors since there would once again be a single path. . We also removed the `margin` parameter, since it is never used anywhere. This will be documented in a Horizon release note. |
1
