1
0
mirror of https://github.com/django/django.git synced 2025-03-29 10:40:45 +00:00

74 Commits

Author SHA1 Message Date
Tim Graham
20c03399d8 [1.11.x] Fixed , -- Restored logging of ManyToManyField changes in admin's object history.
And prevented ManyToManyField initial data in model forms from being affected
by subsequent model changes.

Regression in 56a55566a791a11420fe96f745b7489e756fc931.

Partial backport of e5bd585c6eb1e13e2f8aac030b33c077b0b70c05 and
15b465c584f49a1d43b6c18796f83521ee4ffc22 from master
2017-08-31 09:41:04 -04:00
Paulo
a0707947e4 [1.11.x] Fixed -- Fixed FieldListFilter.get_queryset() crash on invalid input.
Backport of 4ad2f862844d35404e4798b3227517625210a72e from master
2017-06-06 08:18:08 -04:00
Paulo
834d57b4de [1.11.x] Fixed -- Fixed incorrect DisallowedModelAdminLookup when a nested reverse relation is in list_filter.
Backport of b7f99f84bcc4a06114ac31174840efab0aef7602 from master
2017-06-05 11:34:43 -04:00
Adam Chainz
cd86f03591 Refs -- Fixed invalid ModelAdmins in tests. 2017-01-07 10:06:51 -05:00
Michael Scott
1e629928e9 Fixed -- Allowed overriding admin popup response template. 2016-12-14 18:10:56 -05:00
Ramin Farajpour Cami
967be82443 Fixed E305 flake8 warnings. 2016-11-14 12:30:46 -05:00
za
321e94fa41 Refs -- Removed "Tests that", "Ensures that", etc. from test docstrings. 2016-11-10 21:30:21 -05:00
Halil Kaya
2027d6acf7 Fixed -- Prevented ModelAdmin.has_module_permission()=False from blocking access to the app index page. 2016-10-13 09:11:36 -04:00
Stanislav Karpov
b387189d86 Fixed -- Added the action form's media in the changelist view. 2016-08-11 19:35:31 -04:00
Adam Chainz
a757c68129 Fixed admin_views clashing field check error.
admin_views.Recommendation.recommender: (models.E006) The field 'recommender'
clashes with the field 'recommender' from model 'admin_views.title'.
2016-08-10 15:54:29 -04:00
Emad Mokhtar
c4980e28e5 Fixed -- Warned that paginating an unordered QuerySet may result in inconsistent results. 2016-06-08 14:09:24 -04:00
Vytis Banaitis
2f9c4e2b6f Fixed -- Added support for date_hierarchy across relations. 2016-06-04 12:14:02 -04:00
Markus Amalthea Magnuson
08cd6a0e56 Fixed -- Redirected "Save as new" to change view instead of the changelist. 2016-04-20 11:31:44 -04:00
Tim Graham
92053acbb9 Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
Tim Graham
acfaec3db5 Fixed -- Restored the functionality of the admin's raw_id_fields in list_editable. 2016-03-25 13:47:42 -04:00
Tim Graham
37f7ef41fb Fixed -- Made ModelAdmin.list_display callables use an appropriate CSS class name.
Thanks Berker Peksag for the review.
2016-02-02 10:22:59 -05:00
Alexander Gaevsky
9a33d3d764 Fixed -- Fixed crash with reverse OneToOneField in ModelAdmin.readonly_fields. 2016-01-21 13:21:28 -05:00
Alexander Gaevsky
ade54ffa34 Refs -- Fixed JSON serialization for add/edit popup in the admin.
Forwardport of test in o839d71d8562abe0b245024e55ca1d02a45e58fd from stable/1.9.x
(refs ).
2016-01-08 12:28:32 -05:00
Alexander Gaevsky
69208a5a1c Fixed -- Restored line breaks conversion in admin readonly fields. 2015-12-29 19:31:43 -05:00
Tim Graham
f18b08748a Fixed -- Fixed the admin's list_editable add/change buttons. 2015-12-21 09:29:57 -05:00
Tim Graham
65764a9316 Renamed __unicode__() to __str__() in some test comments. 2015-11-19 16:44:16 -05:00
Attila Tovt
0a2d3b7387 Fixed -- Removed bare except clauses. 2015-11-17 14:39:15 -05:00
Simon Charette
9dcfecb7c6 Fixed -- Accounted for generic relations in the admin to field validation
Thanks to Jonathan Liuti for the report and Tim Graham for the review.
2015-10-29 13:13:19 -04:00
Dražen Odobašić
b1e33ceced Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
Ola Sitarska
f2f8972def Fixed -- Deprecated the contrib.admin allow_tags attribute.
Thanks Jaap Roes for the idea and initial patch.
2015-09-08 19:13:43 -04:00
sarthakmeh
40bf18e702 Fixed -- Added GenericRelations with related_query_name to the admin's delete confirmation page. 2015-09-03 10:08:51 -04:00
Tim Graham
9607a04041 Fixed -- Fixed crash with ModelAdmin.list_display value that clashes with a model reverse accessor. 2015-08-28 08:46:26 -04:00
Edward Henderson
f8cc464452 Fixed -- Added an allow_unicode parameter to SlugField.
Thanks Flavio Curella and Berker Peksag for the initial patch.
2015-07-17 13:48:58 -04:00
Tim Graham
e7c6a2cf9f Refs -- Fixed selenium test failures for CharField strip changes. 2015-07-06 08:52:50 -04:00
Adam Zapletal
0894643e40 Fixed -- Kept "Save as new" button after validation errors in admin.
When "Save as new" is chosen and errors occur, only show the "Save as new"
button and not the other save buttons.

Thanks to Tino de Bruijn for doing the real work on this fix.
2015-05-02 19:41:10 -04:00
Baptiste Mispelon
82c9169077 Refs -- Added test/release notes for XSS issue in ModelAdmin.readonly_fields
This issue was fixed by refs .
2015-03-09 10:12:21 -04:00
Aymeric Augustin
934400759d Guaranteed removal of temporary files during tests.
Dropped the DJANGO_TEST_TEMP_DIR environment variable.

Before this change, proper removal depended on the developer passing
dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
2015-02-23 16:55:26 +01:00
Claude Paroz
1791a7e75a Fixed -- Allowed 'add' primary key in admin edition
Thanks Marwan Alsabbagh for the report, and Simon Charette and
Tim Graham for the reviews.
2015-02-14 11:19:55 +01:00
Tim Graham
0ed7d15563 Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
Tim Graham
bbe28496d3 Removed old import aliases. 2015-02-05 19:37:01 -05:00
Simon Charette
07988744b3 Fixed -- Added edit and delete links to admin foreign key widgets.
Thanks to Collin Anderson for the review and suggestions and Tim for the
final review.
2015-01-10 12:24:52 -05:00
Kamil Braun
0623f4dea4 Fixed -- Fixed regression in admin views obj parameter. 2014-12-02 08:42:17 -05:00
Simon Charette
f9c4e14aec Fixed -- Always allowed reference to the primary key in the admin
This change allows dynamically created inlines "Add related" button to work
correcly as long as their associated foreign key is pointing to the primary
key of the related model.

Thanks to amorce for the report, Julien Phalip for the initial patch,
and Collin Anderson for the review.
2014-11-25 13:26:50 -05:00
Emmanuelle Delescolle
a24cf21722 Fixed -- Allowed related m2m fields to be references in the admin.
Thanks Simon Charette for review.
2014-10-06 08:35:16 -04:00
Thomas Chaumeny
17557d068c Fixed -- Added ModelAdmin.show_full_result_count to avoid COUNT() query.
Thanks lidaobing for the suggestion.
2014-09-26 12:12:40 -04:00
Simon Charette
342ccbddc1 Fixed -- Allowed inline and hidden references to admin fields.
This fixes a regression introduced by the 53ff096982 security fix.

Thanks to @a1tus for the report and Tim for the review.

refs .
2014-09-08 13:49:07 -04:00
Simon Charette
3cbb7590cb Fixed -- Allowed inherited and m2m fields to be referenced in the admin.
Thanks to Trac alias Markush2010 and ross for the detailed reports.
2014-08-27 21:26:53 -04:00
areski
a81af7f49d Fixed -- Added link from admin site to front-end site.
Thanks romankrv for the suggestion.
2014-08-27 08:34:53 -04:00
Anssi Kääriäinen
9cd5201abd Fixed -- regression with generic FK + admin list_view
The reason for the regression was that the GenericForeignKey field isn't
something meta.get_field_by_name() should return. The reason is that a
couple of places in Django expects get_field_by_name() to work this way.
It could make sense to return GFKs from get_field_by_name(), but that
should likely be done as part of meta refactoring or virtual fields
refactoring patches.

Thanks to glicerinu@gmail.com for the report and to Tim for working on
the issue.
2014-07-14 10:50:41 -04:00
Maxime Turcotte
504c89e800 Fixed -- Added has_module_permission method to BaseModelAdmin
Thanks chrj for the suggestion.
2014-06-13 09:31:40 -04:00
Alex Gaynor
1dcc603eff Fixed several typos in Django 2014-05-28 17:39:14 -07:00
Alex Gaynor
2bcb8bfc8d Fix many many typos in comments throughout the codebase 2014-04-26 10:18:45 -07:00
Tim Graham
d73d0e071c Fixed -- Deprecated django.conf.urls.patterns.
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-04-03 07:28:10 -04:00
Ben Davis
16afffffe8 Fixed -- Made AdminReadonlyField respect ModelForm Meta overrides. 2014-03-25 09:33:13 -04:00
Claude Paroz
c94bff2b26 Fixed -- Selectively added line breaks in admin read-only fields
When content is supposed to contain HTML, we do not try to add
line breaks in read-only contents.
Thanks Alexander Todorov for the report.
2014-03-22 17:00:50 +01:00