Debian Codegraph @

CHANGES

raw
1 Release 2.4.0 (May 24, 2021)
2 ============================
3
4 * Add support for Python 3.9
5 * Add support for Django 3.1, Django 3.2
6 * Add parameter `any_perm` to `PermissionRequiredMixin`
7 * Switch from Travis CI to `GitHub Actions`_
8
9 Release 2.3.0 (June 6, 2020)
10 ===============================
11
12 * Drop support for Django 2.1
13 * Fix compatibility with UUIDField primary keys
14 * Fix formatting for pyupgrade
15 * Fix error with get_objects_for_user on PostgreSQL
16 * Modify 'assign_perm' shortcut to treat lists as a queryset
17 * Updated links to Django documentation and django-authority repository
18 * Removed reference to "easy_install" in the documentation
19 * Run migrations check only if required version of django is installed
20
21 Release 2.2.0 (January 3, 2020)
22 ===============================
23
24 * Add support for Django 3.0 and Python 3.8.
25 * Add support for custom generic object permission models.
26 * Don't initialise anonymous user on DB where it's not migrated.
27 * Allow object permissions with dots.
28 * Several performance improvements
29 * Improve performance of ``get_objects_for_user``
30 * Update ``get_users_with_perms`` to avoid a large join
31
32 .. important::
33 The 2.2.x release line will be the last one that has support for Django 2.1.
34
35 Release 2.1.0 (September 9, 2019)
36 =================================
37
38 * Upgrade to use ```django.urls.path``` in routing
39 * Add admin support for user primary key as UUID
40 * Auto pre-fetching permission via ```GUARDIAN_AUTO_PREFETCH```
41 * Add tests for missing migrations
42
43 Release 2.0.0 (June 11, 2019)
44 =============================
45
46 * Drop support for Python 2.7 & 3.4 and Django 1.11 & 2.0
47
48 Release 1.5.1 (May 2, 2019)
49 ===========================
50
51 * Restore compatibility with Python 2.7
52
53 .. important::
54 The 1.5.x release line will be the last one that has support for Python 2.7.
55
56 Release 1.5.0 (Jan 31, 2019)
57 ==========================
58
59 * Updates for compatibility with latest Python and Django versions.
60
61 Release 1.4.9 (Jul 01, 2017)
62 ============================
63
64 * Drop ``django_guardian.compat.OrderedDict`` as a consequence of drop Python 1.6
65 earlier.
66 * Fix django admin 1.11 not showing selected permissions
67 * Add a optional checker variable to get_obj_perms
68 * Add missing classifiers in setup.py
69
70
71 Release 1.4.8 (Apr 04, 2017)
72 ============================
73
74 * Improved performance of `clean_orphan_obj_perms` management command
75 * Use bumpversion for versioning.
76 * Enable Python 3.6 testing
77 * Python 2.7, 3.4, 3.5, 3.6 are only supported Python versions
78 * Django 1.8, 1.10, and 1.11 are only supported Django versions
79 * Added explicity on_delete to all ForeignKeys
80
81 Release 1.4.6 (Sep 09, 2016)
82 ============================
83
84 * Improved performance of get_objects_for_user
85 * Added test-covered and documented guardian.mixins.PermissionListMixin
86 * Allow content type retrieval to be overridden fg. for django-polymorphic support
87 * Added support CreateView-like (no object) view in PermissionRequiredMixin
88 * Added django 1.10 to TravisCI and tox
89 * Run tests for example_project in TravisCI
90 * Require django 1.9+ for example_project (django-guardian core support django 1.7+)
91 * Fix django versions compatibility in example_project
92 * Drop django in install_requires of setuptools
93
94 Release 1.4.5 (Aug 09, 2016)
95 ============================
96
97 * Fix caching issue with prefetch_perms.
98 * Convert readthedocs link for their .org -> .io migration for hosted projects
99 * Added example CRUD CBV project
100 * Added TEMPLATES in example_project settings
101 * Added Queryset support to assign_perm
102 * Added QuerySet support to remove_perm
103 * Updated assign_perm and remove_perm docstrings
104 * Moved queryset support in assign_perms to its own function
105 * Moved queryset support in remove_perms to its own function
106 * Consolidated {User,Group}ObjectPermissionManager, move logic of bulk_*_perm
107 to managers
108 * `assign_perm` and `remove_perm` shortcuts accept `Permission`
109 instance as `perm` and `QuerySet` as `obj` too.
110 * Consolidated bulk_assign_perm to assign_perm and bulk_remove_perm to remove_perm
111 * Upgraded Grappelli templates breadcrumbs block to new Django 1.9 and
112 Grappelli 2.8 standards, including proper URLs and support for
113 preserved_filters. Removed the duplicated field.errors in the field.html
114 template file.
115 * Made UserManage/GroupManage forms overridable
116 * Fixed GuardedModelAdminMixin views render for Django 1.10
117
118
119 Release 1.4.4 (Apr 04, 2016)
120 ============================
121
122 * Don't install support example_project.
123 * Direct ForeignKey perms in prefetch_perms.
124
125
126 Release 1.4.3 (Apr 03, 2016)
127 ============================
128
129 * guardian.VERSION should be a tuple, not a list. Fixes #411.
130 * Support for prefetching permissions.
131 * Fixed union between queries.
132 * Allow specifying an empty list of permissions for get_objects_for_group.
133 * Mixed group and user direction relations broken. Fixes #271.
134 * Lookup anonymous user using custom username field.
135 * Fix up processing of ANONYMOUS_USER_NAME where set to None. Fixes #409.
136 * Require TEMPLATE_403 to exist if RENDER_403 set.
137
138
139 Release 1.4.2 (Mar 09, 2016)
140 ============================
141
142 * Test against django-master (Django 1.10 - not released).
143 * Django 1.10 fixes.
144 * Fixes for documentation.
145 * PEP8 fixes.
146 * Fix distributed files in MANIFEST.in
147 * Use pytest for tests.
148 * Add dependancy on django-environ.
149 * Don't use ANONYMOUS_USER_ID. Uses ANONYMOUS_DEFAULT_USERNAME
150 and USERNAME_FIELD instead.
151 * Use setuptools_scm for versioning.
152 * Initialise admin context using each_context for Django >= 1.8.
153 * Add missing with_superusers parameter to get_users_with_perms().
154 * Use setuptools scm for versioning.
155 * Fixes for example_project.
156 * Only display permissions if permission actually assigned.
157 * When using `attach_perms` with `get_users_with_perms`, and `with_group_users`
158 and `with_superusers` set to `False`, only directly assigned permissions are
159 now returned, and not effective (infered) permissions.
160
161
162 Release 1.4.1 (Jan 10, 2016)
163 ============================
164
165 * Fix broken documentation.
166 * Fix setup.py errors (#387).
167 * Fix tox tests.
168 * Fix travis tests.
169
170
171 Release 1.4.0 (Jan 8, 2016)
172 ===========================
173
174 * Drop support for Django < 1.7
175 * Drop support for django south migrations.
176 * Remove depreciated code.
177 * Fix many Django depreciated warnings.
178 * Fix tests and example_project.
179 * Work around for postgresql specific Django bug (#366). This is a regression
180 that was introduced in version 1.3.2.
181 * Updates to documentation.
182 * Require can_change permission to change object perms in admin.
183 * Fixes broke admin URLS (#376 and #381).
184 * Tests now work with Mysql and Postgresql as well as sqlite.
185 * Uses django-environ for tests.
186
187
188 Release 1.3.2 (Nov 14, 2015)
189 ============================
190
191 * Fixes tests for all versions of Django.
192 * Tests pass for Django 1.9b1.
193 * Drops support for Django < 1.5
194 * Add Russian translation.
195 * Various bug fixes.
196 * Ensure password for anonymous user is set to unusable, not None.
197
198
199 Release 1.3.1 (Oct 20, 2015)
200 ============================
201
202 * Fixes for 1.8 compat
203
204
205 Release 1.3 (Jun 3, 2015)
206 =========================
207
208 * Official Django 1.8 support (thanks to multiple contributors)
209
210
211 Release 1.2.5 (Dec 28, 2014)
212 ============================
213
214 * Official Django 1.7 support (thanks Troy Grosfield and Brian May)
215 * Allow to override ``PermissionRequiredMixin.get_permission_object``, part
216 of ``PermissionRequiredMixin.check_permissions`` method, responsible for
217 retrieving single object (Thanks zauddelig)
218 * French translations (Thanks Morgan Aubert)
219 * Added support for ``User.get_all_permissions`` (thanks Michael Drescher)
220
221 Release 1.2.4 (Jul 14, 2014)
222 ============================
223
224 * Fixed another issue with custom primary keys at admin extensions (Thanks Omer
225 Katz)
226
227
228 Release 1.2.3 (Jul 14, 2014)
229 ============================
230
231 Unfortunately this was broken release not including any important changes.
232
233
234 Release 1.2.2 (Jul 2, 2014)
235 ===========================
236
237 * Fixed issue with custom primary keys at admin extensions (Thanks Omer Katz)
238 * ``get_403_or_None`` now accepts Python path to the view function, for example
239 ``'django.contrib.auth.views.login'`` (Thanks Warren Volz)
240 * Added ``with_superuser`` flag to ``guardian.shortcuts.get_objects_for_user``
241 (Thanks Bruno Ribeiro da Silva)
242 * Added possibility to disable monkey patching of the ``User`` model.
243 (Thanks Cezar Jenkins)
244
245
246 Release 1.2 (Mar 7, 2014)
247 =========================
248
249 * Removed ``get_for_object`` methods from managers (#188)
250 * Extended documentation
251 * GuardedModelAdmin has been splitted into mixins
252 * Faster queries in get_objects_for_user when use_groups=False or any_perm=True
253 (#148)
254 * Improved speed of get_objects_for_user shortcut
255 * Support for custom User model with not default username field
256 * Added GUARDIAN_GET_INIT_ANONYMOUS_USER setting (#179)
257 * Added ``accept_global_perms`` to ``PermissionRequiredMixin``
258 * Added brazilian portuguese translations
259 * Added polish translations
260 * Added ``wheel`` support
261 * Fixed wrong anonymous user checks
262 * Support for Django 1.6
263 * Support for Django 1.7 alpha
264
265 .. important::
266 In this release we have removed undocumented ``get_for_object`` method
267 from both ``UserObjectPermissionManager`` and
268 ``GroupObjectPermissionManager``. Not deprecated, removed. Those methods
269 were not used within ``django-guardian`` and their odd names could lead to
270 issues if user would believe they would return object level permissions
271 associated with user/group and object passed as the input. If you depend
272 on those methods, you'd need to stick with version 1.1 and make sure you
273 do not misuse them.
274
275
276 Release 1.1 (May 26, 2013)
277 ==========================
278
279 * Support for Django 1.5 (including Python 3 combination)
280 * Support for custom user models (introduced by Django 1.5)
281 * Ability to create permissions using Foreign Keys
282 * Added ``user_can_access_owned_by_group_objects_only`` option to
283 ``GuardedModelAdmin.``
284 * Minor documentation fixups
285 * Spanish translations
286 * Better support for grappelli_
287 * Updated examples project
288 * Speed up ``get_perms`` shortcut function
289
290
291 Release 1.0.4 (Jul 15, 2012)
292 ============================
293
294 * Added ``GUARDIAN_RENDER_403`` and ``GUARDIAN_RAISE_403`` settings (#40)
295 * Updated docstring for ``get_obj_perms`` (#43)
296 * Updated codes to run with newest django-grappelli (#51)
297 * Fixed problem with building a RPM package (#50)
298 * Updated caveats docs related with oprhaned object permissions (#47)
299 * Updated ``permission_required`` docstring (#49)
300 * Added ``accept_global_perms`` for decorators (#49)
301 * Fixed problem with MySQL and booleans (#56)
302 * Added flag to check for *any* permission in ``get_objects_for_user`` and
303 ``get_objects_for_group`` (#65)
304 * Added missing *tag closing* at template (#63)
305 * Added view mixins related with authorization and authentication (#73)
306 * Added tox_ support
307 * Added Travis_ support
308
309
310 Release 1.0.3 (Jul 25, 2011)
311 ============================
312
313 * Added ``get_objects_for_group`` shortcut (thanks to Rafael Ponieman)
314 * Added ``user_can_access_owned_objects_only`` flag to ``GuardedModelAdmin``
315 * Updated and fixed issues with example app (thanks to Bojan Mihelac)
316 * Minor typo fixed at documentation
317 * Included ADC theme for documentation
318
319 Release 1.0.2 (Apr 12, 2011)
320 ============================
321
322 * ``get_users_with_perms`` now accepts ``with_group_users`` flag
323 * Fixed ``group_id`` issue at admin templates
324 * Small fix for documentation building process
325 * It's 2011 (updated dates within this file)
326
327
328 Release 1.0.1 (Mar 25, 2011)
329 ============================
330
331 * ``get_users_with_perms`` now accepts ``with_superusers`` flag
332 * Small fix for documentation building process
333
334
335 Release 1.0.0 (Jan 27, 2011)
336 ============================
337
338 * A final v1.0 release!
339
340
341 Release 1.0.0.beta2 (Jan 14, 2011)
342 ==================================
343
344 * Added ``get_objects_for_user`` shortcut function
345 * Added few tests
346 * Fixed issues related with ``django.contrib.auth`` tests
347 * Removed example project from source distribution
348
349
350 Release 1.0.0.beta1 (Jan 11, 2011)
351 ==================================
352
353 * Simplified example project
354 * Fixed issues related with test suite
355 * Added ability to clear orphaned object permissions
356 * Added ``clean_orphan_obj_perms`` management command
357 * Documentation cleanup
358 * Added grappelli_ admin templates
359
360
361 Release 1.0.0.alpha2 (Dec 2, 2010)
362 ==================================
363
364 * Added possibility to operate with global permissions for assign and
365 ``remove_perm`` shortcut functions
366 * Added possibility to generate PDF documentation
367 * Fixed some tests
368
369
370 Release 1.0.0.alpha1 (Nov 23, 2010)
371 ===================================
372
373 * Fixed admin templates not included in ``MANIFEST.in``
374 * Fixed admin integration codes
375
376
377 Release 1.0.0.pre (Nov 23, 2010)
378 ================================
379
380 * Added admin integration
381 * Added reusable forms for object permissions management
382
383
384 Release 0.2.3 (Nov 17, 2010)
385 ============================
386
387 * Added ``guardian.shortcuts.get_users_with_perms`` function
388 * Added ``AUTHORS`` file
389
390
391 Release 0.2.2 (Oct 19, 2010)
392 ============================
393
394 * Fixed migrations order (thanks to Daniel Rech)
395
396
397 Release 0.2.1 (Oct 3, 2010)
398 ===========================
399
400 * Fixed migration (it wasn't actually updating object_pk field)
401
402
403 Release 0.2.0 (Oct 3, 2010)
404 ===========================
405
406 Fixes
407 ~~~~~
408
409 * #4: guardian now supports models with not-integer primary keys and
410 they don't need to be called "id".
411
412 .. important::
413 For 0.1.X users: it is required to *migrate* guardian in your projects.
414 Add ``south`` to ``INSTALLED_APPS`` and run::
415
416 python manage.py syncdb
417 python manage.py migrate guardian 0001 --fake
418 python manage.py migrate guardian
419
420 Improvements
421 ~~~~~~~~~~~~
422
423 * Added South_ migrations support
424
425
426 Release 0.1.1 (Sep 27, 2010)
427 ============================
428
429 Improvements
430 ~~~~~~~~~~~~
431
432 * Added view decorators: ``permission_required`` and
433 ``permission_required_403``
434
435
436 Release 0.1.0 (Jun 6, 2010)
437 ===========================
438
439 * Initial public release
440
441
442 .. _south: http://south.aeracode.org/
443 .. _grappelli: https://github.com/sehmaschine/django-grappelli
444 .. _tox: http://tox.testrun.org/
445 .. _travis: http://travis-ci.org/
446 .. _GitHub Actions: https://github.com/django-guardian/django-guardian/actions
447
448
449 .. vim: ft=rst