Commit graph

14 commits

Author SHA1 Message Date
Jannis Leidel
d8542ffb87
Blacken the code. 2020-02-07 10:50:47 +01:00
Jason Ward
4cf4853232 Add support for Django 2.2 (#64)
* Updated tox to test only python{2,3}.7 and djagno1.11/2.2

* Updated travis.

* Updated models/migrations.

* Updated path to `reverse`

* Updated path to login view.

* Updated middlewares/installed apps

* Updated .travis again.

* Lets see if that will get tests working in python3 on travis.

* Switch to in memory DB for tests

* Stop running tests with python2.7 and django 2.2. They shouldn't work anyway.

* Sure did that wrong. Fix which python versions are running with which code.

* That isn't needed. Lets see if that is what is breaking python3.

* Testing a theory.

* Revert "Testing a theory."

This reverts commit 69b3e4c906.

* Added initial migration for example users.

* is_authenticated is a bool, not a method.
2020-01-24 16:04:44 +06:00
Jason Ward
a868d54945 Add support for Django 1.11 (#58)
* refs #1: Updated tox + travis.

* refs #1; Fixed path to register.

* refs #1: Updated urls.py

* refs #1: Added username field. Not really sure why it was needed, but whatever.

* Added an update note.

* refs #2: Updated travis.

* refs #2: Updated command to run tests.

* refs #2: Added a test showing permission_required is busted.

* refs #2: Custom user modal needs a default manager.

* refs #2: Updated settings.

* refs #2: Stop the exception from being raised.

* refs #2: Fixed a problem with named parameters.
2018-01-19 17:37:15 +06:00
Remigiusz Dymecki
95cf006737 Fix import for Django 1.6 in example 2013-12-20 19:33:05 +01:00
Jannis Leidel
fa4a3fbc11 Moved setting the user field widget to correct location in UserPermissionForm 2009-10-12 15:45:06 +02:00
Jannis Leidel
950061cb75 Show how to override a form in the add_permission view in the example project 2009-10-12 14:56:10 +02:00
Jannis Leidel
c3208b2b34 Added date_requested and date_approved fields to Permission model, to accompany the permission request changes. This requires a schema change.
Fixed legacy permission name "approve_permission_requests".
Fixed forms to not bypass validation for permission requests.
Combined the templates for permission requests forms and permission forms in one file.
Added ability to withdraw a permission request, along the lines of the permission denial.
Updated URLs to be more awesome.
Refactored template tags to be classbased, easier to use.
Changed signature of permission_form templatetag and added ability to pass a template name with which the form should be rendered.
Combined permission_form and permission_request_form in one template tag class.
Added utility to determine best URL to redirect to after successful permission (request) creation.
Made sure the new GET access to the permission form views is secure. Please test!
Added new "approve_permissions" admin action to easily approve permissions in the admin.
Updated default templates to use the new features.
Now dance.
2009-07-23 07:33:34 +02:00
Jannis Leidel
340cbb9c73 Fixes issue #2 - Adds ability to pass non-lookup parameters in decorator to permission check. 2009-07-10 15:55:25 +02:00
Jannis Leidel
31eba894d8 Fixed backwards incompatibility with admin. 2009-07-07 14:50:49 +02:00
Jannis Leidel
f9f0f63805 Added site-wide admin action (1.1 only) for editing permissions of arbitrary objects. 2009-07-07 02:12:08 +02:00
Jannis Leidel
62b8c12077 Add an alternative Django 1.0.2 section to the buildout. Use django-debug-toolbar's released version instead of latest development version. 2009-07-03 15:34:42 +02:00
Jannis Leidel
3e047dc5fe Updated example project to use the latest additions to django-authority 2009-06-22 01:07:26 +02:00
Jannis Leidel
539a8bf637 Removed some debug print statements and got rid of the importlib in authority.autodiscover() 2009-06-12 01:57:08 +02:00
Jannis Leidel
96a80d27a1 Added example project 2009-06-08 12:03:49 +02:00