Commit Graph

453 Commits (f08f18e3bbed91e2c0da3c8335794c5e99b8b783)

Author SHA1 Message Date
Pietro Brenna f08f18e3bb 3.0.0
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEE543E/4saL+AzhKtGi03RayEzO9sFAl8/oo0ACgkQi03RayEz
 O9si9w/+KL4NODbR+ql4A1Q8twJjsjyz1iiHHIGMdEkEEIG3PyGai73MqoQSyQZI
 h4Zw16U1CEVxtwCNLzewdz3NsQ9ioK0ZlKjtyp7b6x+zU2p8cwHoFSleB++HH1Uq
 M/RM6ZR8mycPSDhtpkHMQVGjzC408Zvx/hipUCk4gjeVjM92svmKXubnhb0wba4P
 zKpvX7xEqaCLitblWtemKNMqPRApKva/xvntuYWj0DGsIFGvt+AHsZ4dPZCrGdyp
 Fvt+OZP0ZTDZnyCTADSmg4BM5Sa8qGcs9gntQI9nmnkJWWyq3451NrUKvWPoEZQ+
 7cN4Cmp3nclwu4AiK/LWnQnEX953AdR3xQD1vZ8om6yfndXDOWLu0f0UKyKZMAPn
 LkmQcPol6Hm4yUT4yGGxzd2pgMJ5ZbIJVGKjn7D0hytb5kf9Ii3SyEEniQTS9JfU
 I9990UmzFoJI42CfaqhXi1fTk8yPOSfHqo0eyVOw12Q7ALeoAAD/HWgZTp1HO+Cq
 aN5wtn+oX7OSFSfr6/aXLTyYc17ugj4XIkn7DY69NJPsrMELBcX7ThZ+eimuxwFC
 ytt8o0nI49jYwA3bcrmIY2wonV5tkipR2EKivzEW7uteEpjIqHAOLreS5ZLHDCjS
 wFNsKl0Y3xOXGR4RaOrY7oKkRSraeVtbzqpkzL/NT0WsgpROTZ8=
 =60xM
 -----END PGP SIGNATURE-----

Merge tag '3.0.0' into fix_request_path_info

3.0.0
2021-01-07 17:22:50 +01:00
Adam Donaghy fa6808e9b3 Use conditional function definition 2020-08-20 12:34:17 +10:00
Adam Donaghy 45215ff6c3 Add little docstring and typo fix 2020-08-19 18:23:49 +10:00
Adam Donaghy d93f17846f Side load _filter_or_exclude to avoid recursion 2020-08-19 18:04:20 +10:00
Adam Donaghy 21f635d65a Backwards compatible _filter_or_exclude 2020-08-19 17:39:54 +10:00
Adam Donaghy 0232befbae Attempted fix for failures on master 2020-08-19 14:00:53 +10:00
Chris Glass 60ea5524b8 Make test_defer_fields use get_deferred_fields()
Use the provided get_deferred_fields() method instead of relying on the
repr() for the objects to determine whether a field is deferred or not.
2020-08-18 16:07:27 +02:00
Iacopo Spalletti 49c2abf70d
Replace ugettext with gettext to fix deprecation warnings 2020-08-18 12:34:55 +02:00
Chris Glass 1d719a0e60 Remove unused imports
A few places still imported the compat module for no reason - this
commit fixes that.
2020-08-18 10:04:58 +02:00
Chris Glass e67e7042db
Merge pull request #453 from chrisglass/fix-tests
Fix tests
2020-08-14 17:05:20 +02:00
Iacopo Spalletti 76efd54df5 Add missing field 2020-08-14 16:49:51 +02:00
Iacopo Spalletti 0950478fcd Update usage of databases instead of multidb 2020-08-14 16:49:51 +02:00
Chris Glass 76871e3863 Fix warnings
This is a little uncertain - while it does fix warnings I'm not sure the
removed assertion were actually useful in checking the behavior, and I'm
not certain how to recreate the assertion without using the depracated
path.
2020-08-14 16:32:18 +02:00
Chris Glass 378e30cf83
Merge pull request #445 from safaariman/master
Performance improvement on parentadmin
2020-08-14 14:27:04 +02:00
Chris Glass 6be20c14be Fix PY3 reference in tests
We only ever build for py3 now, the compat reference was useless.
2020-08-14 11:05:32 +02:00
Bastien Vallet b6921baede Add support for Django 3.1 2020-08-05 10:39:48 +02:00
Bastien Vallet 68605ba2ba [compat] Remove PY2 compat artefacts
- No need to specific types
- Remove __future__ imports
2020-08-04 14:49:40 +02:00
Bastien Vallet 85469082d0 Remove python_2_unicode_compatible method 2020-08-04 14:38:15 +02:00
Pietro Brenna 12d487d703 fix request.path_info 2020-07-23 20:40:17 +02:00
Safa Arıman 8b35063f58 Performance improvement on parentadmin 2020-06-10 10:56:36 +03:00
Diederik van der Boor c8463b1520
Fix PolymorphicInlineModelAdmin media jquery include for Django 2.0+
As Django changed the media query usage, jquery needs to be included
explicitly as well
2019-07-15 22:11:59 +02:00
Diederik van der Boor db864cd8a8
Corrected black code wrapping when lines had long comments. 2019-07-15 18:10:05 +02:00
Diederik van der Boor 6af023dafd
Added unit test for refresh_from_db() 2019-07-15 17:56:53 +02:00
Diederik van der Boor 407679895f
Fixed import error in the admin due to isort 2019-07-15 10:19:10 +02:00
Diederik van der Boor 59c020ee50
Reformat all files with isort and black 2019-07-15 09:50:15 +02:00
Diederik van der Boor 8c8a920433
Remove dead/unused/unreachable get_first_user_defined_manager() code in metaclass 2019-07-12 18:14:40 +02:00
Diederik van der Boor 49f89ffb21
Fix random unit test failing due to model ordering 2019-07-12 17:53:16 +02:00
Diederik van der Boor 8fb8f47fb0
Fix compatibility with Django 3.0 alpha
Removed django.utils.six dependency, copied the parts we still need for
Python 2 compatibility.
2019-07-12 17:39:59 +02:00
Diederik van der Boor c160556639
Merge PR #259 logic in a Django compatible way 2019-07-12 12:12:04 +02:00
Diederik van der Boor 17e41c4f7f
Rewrite translate_polymorphic_field_path() avoid closures
Inspired by PR #259 to look at this
2019-07-12 12:12:04 +02:00
Diederik van der Boor f769ed7568
Fix dealing with missing derived table data with new prefetching code 2019-07-12 10:01:40 +02:00
Diederik van der Boor 3d9587acfb
Merge PR #353 2019-07-12 09:45:21 +02:00
Diederik van der Boor 4f89a879c0
Add tests for missing content types 2019-07-12 09:43:11 +02:00
Diederik van der Boor ec3fb34f08
Merge pull request #365 from ghost/fix/37-subclass-selector-on-abstract-proxy-models
#37: Fix model subclass ___ selector for abstract/proxy models
2019-07-11 22:12:24 +02:00
Diederik van der Boor 25f4dbb9cd
Restore single if-statement of PR #369 change 2019-07-11 22:10:42 +02:00
Diederik van der Boor a1c779a295
Merge pull request #369 from marksweb/fix/202
Raise `PolymorphicTypeInvalid` instead of cause `TypeError`
2019-07-11 22:09:14 +02:00
Diederik van der Boor 02a7530e83
Merge pull request #370 from ShaheedHaque/srh_issue_367_update_extra_views
Restore compatibility with current versions of extra-views (issue #367).
2019-07-11 22:04:58 +02:00
Diederik van der Boor f9492a12a8
Merge pull request #371 from tumb1er/replace_iterable_class
replace iterable class in qs.non_polymorphic
2019-07-11 22:03:07 +02:00
gtors f06a02a3d0 Issue #373 : Fix bug with get_real_instances on empty base_result_objects 2019-07-11 21:59:46 +02:00
Diederik van der Boor 26fac56e31
Squash Merge PR #379 for Django 2.2 support
Author: Asif Saif Uddin <auvipy@gmail.com>
Author: jeff <jeff@mighty.com>
2019-07-11 21:57:46 +02:00
Andrey Zelenchuk 11208cedf8 Fix bug #392 "Inline model admin: wrong hiding of add button" 2019-07-11 21:42:24 +02:00
Diederik van der Boor 622e1e780b
Fix media-combining in formsets on Django 2.2 2019-07-11 21:38:33 +02:00
tumb1er c565ae101a replace iterable class in qs.non_polymorphic 2018-11-28 17:23:00 +03:00
Shaheed Haque 26b0eefa3a Restore compatibility with current versions of extra-views (issue #367). 2018-11-24 12:49:26 +00:00
Mark Walker 3d9ac45cec Correct the docstring for the invalid test. 2018-11-22 20:12:48 +00:00
Mark Walker fd9d0fa2b8 Raise exception instead of cause `TypeError` when `polymorphic_ctype_id` is invalid. 2018-11-22 20:05:57 +00:00
Lukasz Zdun 14b31bed4c #37: Fix model subclass ___ selector for abstract/proxy models 2018-09-29 09:16:16 +02:00
Diederik van der Boor 9042fdd689
Replace instance_of OR query with IN statement 2018-08-24 11:16:30 +02:00
Diederik van der Boor 374afc3eac
Fixed Django 2.1 error due to missing use_required_attribute=False for empty forms
This attribute is supported as of Django 1.10, so adding it without
conditional Django version checks.

Fixes #360
2018-08-23 17:18:43 +02:00
Diederik van der Boor 5f50aa1dca
fix test warnings about \d+ escape 2018-08-23 14:24:32 +02:00