Commit graph

7 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
Bob Cribbs
11bc2fe188 drop support for django 1.3; use prefetch_related for m2m to user__groups 2015-11-11 00:26:21 +02:00
Bob Cribbs
9589dfc820 import admin in example so it works with dj17 2015-11-10 19:31:54 +02:00
Jenny Qian
ad61de0cae fixing invalid syntax error
Got the following error when installing django-authority:
  File "/path/to/env/build/django-authority/example/users/admin.py", line 2
    from example.users.User
                          ^
SyntaxError: invalid syntax
2014-01-29 16:18:38 -06:00
Travis Chase
9c17430b03 Added custom user model and modified test run to use it when Django >= 1.5 2013-06-13 06:13:12 -05:00