Commit graph

114 commits

Author SHA1 Message Date
Jannis Leidel
ff95d54a26
Remove use of six. 2020-11-26 09:55:45 +01:00
Jannis Leidel
f0948c08e9
Update render_to_response. 2020-11-26 09:49:45 +01:00
Asif Saif Uddin
6c82e3db63
Merge pull request #66 from mikebq/action-error-list-no-attrib-data
Fixes ActionErrorList creation resulting in AttributeError
2020-02-26 15:24:42 +06:00
Michael Brannan
e94703f675 Fixes cycle syntax 2020-02-25 13:33:53 +00:00
Michael Brannan
94d6f29a15 Initialise base class before calling into it. 2020-02-25 12:00:49 +00:00
Jannis Leidel
1372cf1f6f
Move tests from example app into main package. 2020-02-07 11:38:50 +01:00
Jannis Leidel
3d07c79272
Remove compat code from the past. 2020-02-07 11:38:19 +01:00
Jannis Leidel
0a6e3bdbcb
Minor fixes. 2020-02-07 11:27:59 +01:00
Gunnlaugur Þór Briem
06905e90c4
Fix BasePermission.assign for group perms
fixes #26
2020-02-07 11:17:51 +01:00
Jannis Leidel
c5be724ec9
Merge branch 'master' of github.com:jazzband/django-authority 2020-02-07 11:10:34 +01:00
Jannis Leidel
f793207cb9
Merge remote-tracking branch 'libraM/master' 2020-02-07 11:10:21 +01:00
Jannis Leidel
2dcbffe297
Merge branch 'master' into master 2020-02-07 11:04:41 +01:00
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
cclauss
eebdcaa009
'basestring' was removed in Python 3
__from django.utils.six import string_types__
2018-12-02 11:49:53 +01:00
Jannis Leidel
f1ba811043
Fix distribution name. 2018-01-28 14:57:35 +01:00
Jannis Leidel
5d466ac318
Use setuptools_scm. 2018-01-28 14:17:11 +01: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
Julien Delasoie
c50368eb34 Change module discovery to use the one from Django 2017-10-12 15:45:59 +02:00
Charles Francois Rey
9e4035118e Fix render_to_string() calls with unexpected context_instance parameter (Django 1.10 compatibility) 2016-09-16 16:39:44 +02:00
greg
57684b94df Add a blank line for the last line + adapt tox.ini for django1.10 2016-08-15 11:30:38 +02:00
greg
d4dc955e63 Django 1.10 - django.conf.urls.patterns() is removed 2016-08-12 15:41:30 +02:00
greg
8aa4c85942 update tests 2016-08-12 13:01:06 +02:00
greg
91929a76c9 Features removed in 1.9 :
1. All models need to be defined inside an installed application or declare an explicit app_label. Furthermore, it isn’t possible to import them before their application is loaded. In particular, it isn’t possible to import models inside the root package of an application

2. The django.contrib.contenttypes.generic module is removed

3. django.db.models.loading is removed.
2016-07-27 18:41:25 +02:00
Safwan Rahman
8935320f4b Adding migration to support Django 1.8 2016-03-29 23:26:48 +06:00
Safwan Rahman
08359c4880 Remove older Django support and fix styling issues 2016-03-29 23:24:31 +06:00
Jason Ward
8f81984939 refs #45: Fixed broken test. 2015-12-14 11:09:43 -05:00
Jason Ward
c5c853e12b refs #45: Updated the tests. 2015-12-14 11:09:32 -05: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
2c2927f696 add compat.py file for user model 2015-11-10 22:45:10 +02:00
Bob Cribbs
e712aa607e Merge pull request #33 from DylanLukes/master
Django 1.7 compatibility
2015-11-10 18:10:28 +02:00
Yakovlev Alexander
bf2423b574 Django 1.6 admin compatibility fix. Refs #37. 2014-04-16 08:53:39 +04:00
Mozillazg
3cb36d9e24 Fixed typo 2014-02-21 13:22:58 +08:00
Dylan Lukes
b1f63c8d25 Django 1.7 compatibility 2014-02-20 13:35:33 -05:00
Jannis Leidel
49a52b7957 Merge pull request #11 from gthb/issue_15
Fix TypeError in edit_permissions
2014-02-20 17:53:22 +01:00
Jannis Leidel
f26feb3e47 Merge pull request #29 from gthb/fix-edit_permission-action
Fix edit permission action
2014-02-20 17:53:02 +01:00
Jannis Leidel
c394cc699e Merge pull request #28 from gthb/patch-1
Fix lurking bug in edit_permissions
2014-02-20 17:52:44 +01:00
mozillazg
00aaa026d9 Change argument extra_context's default value
Change keyword argument extra_context's default value from `{}` to `None`.
2014-02-20 22:11:57 +08:00
Gunnlaugur Þór Briem
37cef6308e Change submit name to make edit_permission work
Turns out that since Django 1.2 the admin only invokes actions when
handling POST if the POST data specifically *doesn't* contain `_save`:

cce32a9b09

So this submit name was preventing `edit_permission` from acting on the
POST data since Django 1.2.
2014-02-12 00:15:16 +00:00
Gunnlaugur Þór Briem
423bb90c71 Show action form errors using message_user
Not very neat, but way better than nothing when there are errors
(previously the error was invisible and the action simply seemed to have
completed).
2014-02-12 00:15:13 +00:00
Gunnlaugur Thor Briem
40924e532d Fix lurking bug in edit_permissions
I don't have a test case, this is just code review; that string extrapolation will always raise.
2014-02-11 11:20:31 +00:00
Wes Winham
13f425c5c2 Merge pull request #25 from gthb/fix-jsi18n-path
Fix hardcoded jsi18n script path
2014-02-10 13:25:31 -05:00
Gunnlaugur Þór Briem
0023127fc7 Fix hardcoded jsi18n script path
Use normal Django URL reversal instead of hardcoded relative path.
2014-02-10 18:05:18 +00:00
Gunnlaugur Þór Briem
c81f252840 Fix CSRF failure posting permission change form
Add missing `{% csrf_token %}` in form.

fixes #18
2014-02-10 18:03:24 +00:00
Wes Winham
426e0db6af Removed liar comment RE: smart cache default
The smart cache defaults to enabled.
2014-01-29 15:29:13 -05:00
Remigiusz Dymecki
d81caa6599 Fix import for Django 1.6 2013-12-06 01:43:37 +01:00
Jannis Leidel
ed096dcd21 Merge pull request #12 from gthb/django-deprecations
Fix django deprecations
2013-09-09 00:18:58 -07:00
Remigiusz Dymecki
27cfd0b0e5 backward compatible 2013-09-08 03:43:38 +02:00
Remigiusz Dymecki
dd04fecee6 Python3 update 2013-09-08 03:30:44 +02:00
Gunnlaugur Þór Briem
7dace16efd Fix remaining use of deprecated ADMIN_MEDIA_PREFIX 2013-07-30 18:57:38 +00:00