Nick Mavrakis
e5c2e43cc8
Fixed #27743 -- Prevented admin's "+" button icon from overlapping its label.
2017-01-23 19:24:47 -05:00
Claude Paroz
6e55e1d88a
Refs #23919 -- Replaced six.reraise by raise
2017-01-22 20:08:04 +01:00
Claude Paroz
dc8834cad4
Refs #23919 -- Removed unneeded force_str calls
2017-01-20 08:44:31 +01:00
Tim Graham
9d27478958
Refs #23919 -- Removed docs references to long integers.
2017-01-19 13:19:26 -05:00
Claude Paroz
53f3d53ed4
Updated translation catalogs
...
Forward port of 518693bef5
from stable/1.11.x
2017-01-19 17:09:37 +01:00
Simon Charette
cecc079168
Refs #23919 -- Stopped inheriting from object to define new style classes.
2017-01-19 08:39:46 +01:00
Claude Paroz
2b281cc35e
Refs #23919 -- Removed most of remaining six usage
...
Thanks Tim Graham for the review.
2017-01-18 21:33:28 +01:00
Claude Paroz
7b2f2e74ad
Refs #23919 -- Removed six.<various>_types usage
...
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18 20:18:46 +01:00
Claude Paroz
f3c43ad1fd
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
2017-01-18 13:44:34 +01:00
Claude Paroz
d7b9aaa366
Refs #23919 -- Removed encoding preambles and future imports
2017-01-18 09:55:19 +01:00
Tim Graham
d67a46e104
Refs #25135 -- Removed support for the contrib.admin allow_tags attribute.
...
Per deprecation timeline.
2017-01-17 20:52:01 -05:00
Anton Samarchyan
95f434e2b9
Fixed #27714 -- Fixed small visual artifact when clicking inline edit button in admin.
2017-01-10 11:24:28 -05:00
Adam Chainz
9daf8c43bd
Fixed #26961 -- Made admin checks run when DEBUG=False.
2017-01-10 07:02:13 -05:00
Adam Chainz
d57ecf40eb
Fixed #27673 -- Made admin's checks run at check time instead of during registration.
...
Thanks Morgan Aubert for the test.
2017-01-10 07:02:13 -05:00
elky
0a47b675b0
Refs #15667 -- Removed hardcoded icon size for related widget wrapper.
...
The template-based widget rendering branch was started years ago.
This is obsolete now.
2017-01-09 09:59:14 -05:00
Tim Graham
8ea541e6a2
Refs #2856 -- Removed redundant escaping in admin's "Perhaps it was deleted?" message.
2017-01-04 10:22:17 -05:00
Karen Tracey
27267afc41
Fixed #2856 -- Replaced some 404s with messages in admin.
...
Instead of a 404, return a redirect to admin index page with a message
indicating that the requested object does not exist. This avoids the
admin returning 404 from "Recent Actions" links for deleted objects.
2017-01-03 11:31:05 -05:00
Preston Timmons
b52c73008a
Fixed #15667 -- Added template-based widget rendering.
...
Thanks Carl Meyer and Tim Graham for contributing to the patch.
2016-12-27 17:50:10 -05:00
Adonys Alea Boffill
8ba01d1e42
Fixed #26543 -- Prevented "confirm form submission" browser prompt when reloading after an admin actions failure.
2016-12-23 17:29:24 -05:00
Anton Samarchyan
da79240050
Fixed #26632 -- Skipped admin.E111 list_display_links check if get_list_display() is overridden.
2016-12-22 09:32:11 -05:00
Henry Dang
6af23a4521
Fixed #27377 -- Clarified that prepopulated_fields doesn't work with OneToOneField.
2016-12-19 08:33:46 -05:00
Michael Scott
1e629928e9
Fixed #27313 -- Allowed overriding admin popup response template.
2016-12-14 18:10:56 -05:00
Vinay Karanam
4a246a02bd
Refs #17235 -- Made MultiPartParser leave request.POST immutable.
2016-12-07 08:28:46 -05:00
nmhung89
8f76673f34
Fixed #18729 -- Made admin changelist not use distinct() if a list_filter doesn't require it.
2016-12-06 10:38:38 -05:00
Adam Chainz
6252fd6314
Fixed #27532 -- Deprecated Model._meta.has_auto_field
2016-11-25 13:24:11 -05:00
elky
9a49fdcd8f
Fixed #27531 -- Added block.super to admin's delete confirmation extrahead blocks.
2016-11-24 06:40:13 -05:00
Michiel Beijen
364293529b
Fixed #27393 -- Aligned input boxes in admin password reset forms.
2016-11-15 09:49:24 -05:00
Ramin Farajpour Cami
0a63ef3f61
Fixed #27463 -- Fixed E741 flake8 warnings.
2016-11-14 17:40:28 -05:00
Ramin Farajpour Cami
967be82443
Fixed E305 flake8 warnings.
2016-11-14 12:30:46 -05:00
Jacob Rief
b3162cab94
Fixed #27386 -- Wrapped admin's readonly fields in <div> rather than <p>.
2016-11-12 10:02:57 -05:00
Julian Andrews
adc93e8599
Fixed #26357 -- Allowed admin popups to work on links added after page load.
2016-10-24 20:17:31 -04:00
Halil Kaya
2027d6acf7
Fixed #26954 -- Prevented ModelAdmin.has_module_permission()=False from blocking access to the app index page.
2016-10-13 09:11:36 -04:00
Nick Pope
f1664a2734
Replaced '__' with LOOKUP_SEP constant.
2016-10-11 11:14:06 -04:00
Tim Graham
4ba206ca63
Removed unused contrib.admin.utils.remove_trailing_data_field().
...
Unused since 8f30556329
.
2016-10-10 20:57:48 -04:00
Zach Borboa
bf91be83d5
Fixed #24941 -- Added ModelAdmin.get_exclude().
...
Thanks Ola Sitarska for the initial patch.
2016-10-07 18:49:28 -04:00
Tim Graham
e1b4360adc
Fixed #27273 -- Added a construct_change_message() admin utility function.
2016-10-05 08:02:33 -04:00
François Freitag
aa9569fce1
Fixed #27218 -- Returned LogEntry instances from ModelAdmin.log_*() methods.
2016-10-04 14:08:53 -04:00
Claude Paroz
67eee5e4fa
Fixed #27302 -- Fixed ModelAdmin.construct_change_message() changed field detection
...
Thanks Ramiro Morales for the report and Tim Graham for the review.
2016-10-01 20:14:27 +02:00
Claude Paroz
63bf615d5e
Updated translations from Transifex
...
Forward port of bfc9c72725
from stable/1.10.x.
2016-09-30 22:12:41 +02:00
Tim Graham
6f3c78dbe6
Fixed #27266 -- Allowed using assertFormError()/assertFormsetError() in admin forms and formsets.
...
Thanks Diego Andrés Sanabria Martín for the report and review.
2016-09-27 09:56:19 -04:00
Claude Paroz
2c50120360
Fixed #27261 -- Added missing python-brace-format marker
...
Thanks Maxime Vdb for the report.
2016-09-23 20:01:31 +02:00
Mehdi Pourfar
13a8e633c2
Fixed #27158 -- Fixed positioning of admin's many-to-many widgets in rtl.css.
2016-09-22 19:23:24 -04:00
Jibodeah
9459ec82aa
Fixed #26170 -- Made ModelAdmin views run transactions on the correct database.
...
Thanks juntatalor for the initial patch.
2016-09-14 16:06:39 -04:00
Jeff Willette
7148929a5e
Fixed #27216 -- Corrected import location in admin deprecation messages.
2016-09-13 13:45:24 -04:00
Jon Dufresne
e24c0a2d7c
Fixed #26524 -- Fixed crash in admin change view when displaying many to many forward refs.
...
Thanks Tim Graham for the regression test.
2016-09-12 19:20:35 -07:00
Alexander Gaevsky
536db42cf0
Fixed #26097 -- Added password_validators_help_text_html to UserCreationForm.
2016-09-10 18:23:18 -04:00
Alexander Gaevsky
2d26b4637f
Fixed #27207 -- Replaced <p> tag with <div> in admin help texts.
2016-09-10 16:54:10 -04:00
Rinat Khabibiev
ca9c69a968
Fixed #27199 -- Made AdminIntegerFieldWidget use NumberInput.
2016-09-09 09:42:39 -04:00
Claude Paroz
2ced2f785d
Replaced smart_* by force_* calls whenever possible
...
The smart_* version should only be used when a lazy string should keep
its lazy status.
2016-09-03 13:46:41 +02:00
Berker Peksag
a02b5848ae
Replaced property() usage with decorator in several places.
2016-08-25 20:06:22 -04:00
Mattias Loverot
2315114090
Fixed #27067 -- Deprecated string_concat() in favor of format_lazy().
2016-08-25 16:12:40 -04:00
Berker Peksag
426bca002c
Fixed #26816 -- Corrected an admin check to require inlines to subclass InlineModelAdmin.
2016-08-24 17:34:32 -04:00
Berker Peksag
3c97ba2a0d
Replaced property() usage with decorator in a couple places.
2016-08-24 17:23:16 -04:00
Collin Anderson
384f89f8f8
Fixed #26998 -- Reverted some admin checks from checking field.many_to_many back to isinstance(field, models.ManyToManyField).
...
This partially reverts 983c158da7
2016-08-23 16:00:12 -04:00
Stanislav Karpov
b387189d86
Fixed #26919 -- Added the action form's media in the changelist view.
2016-08-11 19:35:31 -04:00
Claude Paroz
374b6091ac
Pulled contrib translations from Transifex
...
Forward port f19cadd391
from stable/1.10.x
2016-08-01 19:47:19 +02:00
Chad Whitman
bc1e9e823b
Removed duplicate admin CSS selector.
2016-07-21 16:58:14 -04:00
Tim Graham
93c538694e
Fixed XSS in admin's add/change related popup.
...
This is a security fix.
2016-07-18 11:17:01 -04:00
Claude Paroz
255fb99284
Fixed #17209 -- Added password reset/change class-based views
...
Thanks Tim Graham for the review.
2016-07-16 10:36:12 +02:00
Kenneth
2f587737d7
Fixed #26872 -- Fixed text overflow in ModelAdmin.list_filter.
2016-07-09 08:06:42 -04:00
Claude Paroz
490107f14d
Added Upper/Lower Sorbian translations
2016-06-29 21:11:30 +02:00
Lh4cKg
18571aefe6
Added Georgian mapping to contrib/admin/static/admin/js/urlify.js
2016-06-29 09:59:03 -04:00
David Sanders
7ca6007bd2
Fixed #26811 -- Added addButton option to admin inlines JavaScript.
2016-06-28 15:19:53 -04:00
Shabda Raaj
b0acb1e73e
Fixed #26779 -- Added extra_context parameter to admin's i18n_javascript view.
2016-06-27 15:37:32 -04:00
Claude Paroz
78963495d0
Refs #17209 -- Added LoginView and LogoutView class-based views
...
Thanks Tim Graham for the review.
2016-06-24 10:45:13 +02:00
Paulo
9c2d5a8d33
Fixed #26729 -- Allowed overriding a form field's label/help_text in Form.__init__() for TabularInline.
2016-06-21 14:26:47 -04:00
Dmitry Medvinsky
0451dcc2eb
Fixed #26742 -- Fixed action select color in admin changelist.
2016-06-10 11:39:11 -04:00
Oliver Sauder
5d8375fe66
Fixed #4548 -- Added username hint to admin's change_password form.
2016-06-09 12:18:15 -04:00
krishbharadwaj
f6681393d3
Fixing #26524 -- Made a foreign key id reference in ModelAdmin.list_display display the id.
2016-06-08 17:20:03 -04:00
Pyie Zone
054e74420b
Refs #16501 , #26474 -- Added xregexp.js source file.
2016-06-06 09:25:02 -04:00
Vytis Banaitis
2f9c4e2b6f
Fixed #19963 -- Added support for date_hierarchy across relations.
2016-06-04 12:14:02 -04:00
Claude Paroz
5ccee815ff
Updated translation catalogs
2016-05-17 23:21:35 +02:00
Florian Apolloner
9baf692a58
Fixed #26601 -- Improved middleware per DEP 0005.
...
Thanks Tim Graham for polishing the patch, updating the tests, and
writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-05-17 07:22:22 -04:00
Tim Graham
c999c8d8f6
Updated admin's jQuery to 2.2.3.
2016-05-17 07:20:06 -04:00
David Sanders
14c952d581
Fixed #26612 -- Fixed SelectFilter2 buttons changing URL.
2016-05-13 09:06:20 -04:00
Vincenzo Pandolfo
069319396f
Fixed #26277 -- Added support for null values in ChoicesFieldListFilter.
2016-05-12 12:40:14 -04:00
Collin Anderson
38c43b2a5c
Refs #24227 -- Partially reverted replacement of M2M isinstance checks by field.many_to_many.
...
This fixes django-taggit and reflects some places where duck-typing may not
be appropriate.
2016-05-11 10:29:01 -04:00
marysia
b9290b1d49
Fixed #26449 -- Merged admin's FORMFIELD_FOR_DBFIELD_DEFAULTS with formfield_overrides.
...
Useful for overriding the DateTimeField widget.
2016-05-07 19:52:45 -04:00
Dan Watson
ad403ffa45
Fixed #26582 -- Added prettier admin display for list values.
2016-05-07 15:49:41 -04:00
Claude Paroz
388bb5bd9a
Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup()
...
Thanks Tim Graham for completing the initial patch.
2016-05-04 20:02:01 +02:00
Dan Stephenson
1206eea11e
Fixed #26558 -- Removed need for request context processor on admin login page.
2016-05-04 09:43:24 -04:00
Simon Charette
ad0f536e1c
Fixed #26577 -- Disabled implicit wait of Selenium tests where appropriate.
2016-05-03 23:19:24 -04:00
David Sanders
e00d77c483
Fixed #26575 -- Disabled SelectFilter buttons when inactive.
2016-05-03 13:09:07 -04:00
David Sanders
fb68674ea4
Fixed #26561 -- Improved admin's JavaScript SelectBox performance on large lists.
2016-05-03 10:24:22 -04:00
Claude Paroz
8dcf352c03
Pulled translations from Transifex
2016-04-30 14:27:07 +02:00
Claude Paroz
d9a00ad16b
Removed deprecated Chinese language codes for contrib apps
...
Refs #18149 .
2016-04-30 14:26:47 +02:00
Claude Paroz
b0068af5ff
Fixed source path in contrib.admin translation catalog
...
Refs #26341 .
2016-04-30 12:21:54 +02:00
Tim Graham
859eeaa0f0
Fixed #26533 -- Renamed Widget._format_value() to format_value().
2016-04-23 13:15:45 -04:00
Markus Amalthea Magnuson
08cd6a0e56
Fixed #16327 -- Redirected "Save as new" to change view instead of the changelist.
2016-04-20 11:31:44 -04:00
Claude Paroz
de40cfbe74
Fixed #19567 -- Added JavaScriptCatalog and JSONCatalog class-based views
...
Thanks Cristiano Coelho and Tim Graham for the reviews.
2016-04-15 17:28:54 +02:00
Tim Graham
5cc8261c39
Removed unused AdminCommaSeparatedIntegerFieldWidget.
...
Unused since f212b24b64
.
2016-04-15 11:05:11 -04:00
Tim Graham
df8d8d4292
Fixed E128 flake8 warnings in django/.
2016-04-08 09:51:06 -04:00
Tim Graham
7d6e6e8367
Fixed #26473 -- chmod -x on django/contrib/admin/static/admin/fonts/LICENSE.txt
2016-04-06 12:36:07 -04:00
akoskaaa
ab2d34ba3f
Fixed #25856 -- Added %B support to Date.strftime.
...
This enables the admin to display the correct localized month name if %B
is used in the date format.
2016-04-06 10:41:58 -04:00
Tim Graham
2cd2d18851
Fixed W503 flake8 warnings.
2016-04-04 17:14:26 -04:00
Akshesh
a7c813ba04
Fixed #21734 -- Handled ProtectedError in a POST to admin's delete_selected action.
2016-03-29 07:42:23 -04:00
Tim Graham
acfaec3db5
Fixed #26387 -- Restored the functionality of the admin's raw_id_fields in list_editable.
2016-03-25 13:47:42 -04:00
Collin Anderson
b55c77ed18
Removed unused xmlhttp from admin's core.js.
2016-03-24 17:27:53 -04:00
Akshesh
49ac10b4de
Fixed #26235 -- Handled ProtectedError in a POST to admin's delete_view().
2016-03-21 19:25:27 -04:00
Claude Paroz
983c158da7
Refs #24227 -- Replaced M2M isinstance checks by field.many_to_many
...
Thanks Markus Holtermann, Collin Anderson and Tim Graham for the reviews.
2016-03-19 09:24:27 +01:00
Akshesh
44c0ecdd92
Fixed #25364 -- Added generic way to test on all browsers supported by selenium.
...
Browser names should be passed as a comma separated list to the --selenium flag.
Thanks Tim Graham, Simon Charette and Moritz Sichert for review and discussion.
2016-03-15 13:10:32 -04:00
Alasdair Nicol
65bd053f11
Fixed #26229 -- Improved check for model admin check admin.E124
...
Refs #22792
2016-03-01 08:20:14 -05:00
Sjoerd Job Postmus
bbe136e1a2
Fixed #26231 -- Used .get_username in admin login template.
2016-02-25 19:29:53 -05:00
Akshesh
6670da75ff
Fixed #25653 -- Made --selenium run only the selenium tests.
2016-02-19 14:21:00 -05:00
Tim Graham
004ba0f99e
Removed unneeded hint=None/obj=None in system check messages.
2016-02-12 13:01:25 -05:00
Tim Graham
406675b1a0
Fixed #26176 -- Fixed E123 flake8 warnings.
2016-02-05 15:11:07 -05:00
Federico Capoano
e972a7d03d
Fixed #13875 -- Made admin's submit_row template tag pass whole context.
2016-02-04 11:56:16 -05:00
jpic
926e90132d
Fixed #25731 -- Removed unused choices kwarg for Select.render()
2016-02-02 18:03:19 -05:00
rynomster
468d8211df
Fixed #23971 -- Added "Has date"/"No date" choices for DateFieldListFilter.
2016-02-02 12:04:14 -05:00
Tim Graham
37f7ef41fb
Fixed #24316 -- 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
bphillips
917cc288a3
Fixed #11313 -- Made ModelAdmin.list_editable more resilient to concurrent edits.
...
Allowed admin POSTed bulk-edit data to use modeladmin.get_queryset()
so that the ids in the POST data have a chance to match up even if
the objects on the current page changed based on the ordering.
2016-02-01 16:05:01 -05:00
Myk Willis
62f3acc70a
Fixed incorrect permissions check for admin's "Save as new".
...
This is a security fix.
2016-02-01 11:57:00 -05:00
Hugo Osvaldo Barrera
8bf8d0e0ec
Fixed #7923 -- Added links to objects displayed by ModelAdmin.raw_id_fields.
2016-02-01 07:36:10 -05:00
Alexander Gaevsky
c79852acee
Fixed #14402 -- Removed clearing of help_text for ManyToManyField's raw_id_fields.
2016-01-30 12:42:47 -05:00
Nik Nyby
275d11fbc5
Corrected comment about SelectFilter2's dependencies.
2016-01-25 14:33:59 -05:00
userimack
60586dd737
Fixed #26125 -- Fixed E731 flake warnings.
2016-01-25 14:23:43 -05:00
Vincenzo Pandolfo
0490d72f2a
Fixed #24116 -- Moved AdminSite.check_dependencies() to system checks.
2016-01-22 18:29:56 -05:00
Jan Pieter Waagmeester
95648eb5c1
Lowercased "actions" of "Recent actions" and "My actions" in admin index sidebar.
2016-01-22 15:43:03 -05:00
Alexander Gaevsky
9a33d3d764
Fixed #26060 -- Fixed crash with reverse OneToOneField in ModelAdmin.readonly_fields.
2016-01-21 13:21:28 -05:00
Raphael Michel
ae9f08882f
Fixed an incorrectly used translation string in admin changeform.
...
This uses a translation string that already exists (used in the
<title> of the same page) and fixes a grammer mistake for German
and possibly other languages.
2016-01-14 19:19:57 -05:00
Tim Graham
99d2469e75
Refs #494 -- Fixed a flaky admin_inlines tests.
2016-01-11 14:16:17 -05:00
Tim Graham
294d0d8815
Fixed #26048 -- Made admin selenium tests use implicitly_wait()
2016-01-11 14:16:17 -05:00
Tim Graham
3541ca1504
Refs #25165 -- Fixed JSON serialization for delete popup in the admin.
2016-01-09 13:35:58 -05:00
Thomas Grainger
cbaa3ee3ee
Refs #25165 -- Removed unnecessary HTML unescaping in admin add/edit popups.
...
Because we now load data into the page via JSON, we don't need to
unescape it anymore.
2016-01-08 18:24:04 -05:00
Alexander Gaevsky
ea7542891a
Refs #24980 -- Fixed incorrect timezone handling in admin calendar widget.
2016-01-08 17:21:47 -05:00
Claude Paroz
7b8d2dcd75
Updated contrib.admin translations for new tests
2016-01-08 20:34:59 +01:00
Claude Paroz
cf7894be88
Fixed #21113 -- Made LogEntry.change_message language independent
...
Thanks Tim Graham for the review.
2016-01-08 20:34:59 +01:00
Alexander Gaevsky
ade54ffa34
Refs #25165 -- Fixed JSON serialization for add/edit popup in the admin.
...
Forwardport of test in o839d71d8562abe0b245024e55ca1d02a45e58fd from stable/1.9.x
(refs #25997 ).
2016-01-08 12:28:32 -05:00
Tim Graham
822a03b3e4
Refs #25165 -- Fixed failure of admin's "Add another" popup to close.
...
Thanks Thomas Grainger for the fix.
2016-01-08 11:41:01 -05:00
Alexander Gaevsky
44930cc466
Fixed #24980 -- Fixed day determination in admin calendar widget.
2016-01-07 11:13:05 -05:00
Scott Pashley
7cc2efc2d6
Fixed #26035 -- Prevented user-tools from appearing on admin logout page.
2016-01-06 13:48:02 -05:00
Marten Kenbeek
16411b8400
Fixed #26013 -- Moved django.core.urlresolvers to django.urls.
...
Thanks to Tim Graham for the review.
2015-12-31 14:21:29 -05:00
Claude Paroz
f14ab700c3
Updated translations from Transifex
...
Forward port of 59f3590ca7
from stable/1.9.x.
2015-12-31 15:53:02 +01:00
Alexander Gaevsky
69208a5a1c
Fixed #25465 -- Restored line breaks conversion in admin readonly fields.
2015-12-29 19:31:43 -05:00
Tim Graham
dbb0df2a0e
Fixed #25985 -- Updated signature of ModelAdmin.formfield_for_* to make request a positional argument.
2015-12-29 12:49:14 -05:00
Nick Sandford
ff19df9c2d
Fixed #19536 -- Included object-tools when ModelAdmin.has_add_permission() is False.
2015-12-29 12:10:44 -05:00
Akshesh
0d855990f7
Fixed #25967 -- Indicated required fields in admin.TabularInline headers.
2015-12-28 12:50:46 -05:00
Karen Tracey
5399ccc0f4
Fixed #494 -- Added ability to specify classes on admin inline fieldsets.
...
This includes the ability to collapse inlines by specifying a class named
'collapse'.
2015-12-21 13:50:06 -05:00
Tim Graham
541000773a
Replaced some usage of django.jQuery with $.
2015-12-21 09:29:58 -05:00
Tim Graham
f18b08748a
Fixed #25903 -- Fixed the admin's list_editable add/change buttons.
2015-12-21 09:29:57 -05:00
Sven Grunewaldt
9af40f5df1
Fixed #25845 -- Fixed incorrect timezone warnings in custom admin templates.
2015-12-17 14:35:13 -05:00
Sergey Fedoseev
8ab58b8052
Fixed #25883 -- Fixed admin deletion page summary counts for related objects.
2015-12-10 18:09:03 -05:00
Johannes Hoppe
cf546e11ac
Fixed #21221 -- Made form Media and static template tag use staticfiles if installed.
2015-12-10 14:30:19 -05:00
Thomas Grainger
d638cdc42a
Fixed #25165 -- Removed inline JavaScript from the admin.
...
This allows setting a Content-Security-Policy HTTP header
(refs #15727 ).
Special thanks to blighj, the original author of this patch.
2015-12-05 15:51:57 -05:00
bphillips
7f663aeccf
Fixed #25820 -- Allowed whitespace in admin's calendar.js month/weekday names.
...
This is useful for certain language translations.
2015-12-03 19:44:15 -05:00
Josh Soref
93452a70e8
Fixed many spelling mistakes in code, comments, and docs.
2015-12-03 12:48:24 -05:00
Claude Paroz
273ce8aa6a
Pulled contrib translations from Transifex
...
Forward port of 6a4649c27e
from stable/1.9.x
2015-12-01 20:37:57 +01:00
elky
2084aed20c
Fixed #25827 -- Removed extra spacing in admin's DateTimeField.
2015-11-30 08:46:22 -05:00
Claude Paroz
867faeda9e
Added two translator comments in contrib apps
...
Thanks GunChleoc for the suggestions.
2015-11-27 09:37:31 +01:00
Johannes Ammon
2ab244ff3a
Made ListFilter.choices() argument name more explicit.
2015-11-23 12:39:48 -05:00
Anton Baklanov
80bcbecd4a
Fixed #19361 -- Added link to object's change form in admin's post-save message.
...
Thanks Roel Kramer for tests.
2015-11-19 15:04:32 -05:00
Nick Sandford
5fa7b592b3
Fixed #22810 -- Corrected admin changelist count for list filters that filter by default.
2015-11-18 19:54:27 -05:00
Dmitry Dygalo
92eced62cd
Simplified lists creation in three places.
2015-11-17 07:58:49 -05:00
Claude Paroz
53326e2c8a
Updated contrib.admin translation catalog
...
Forward port of 5234c9937
from stable/1.9.x
2015-11-15 11:10:25 +01:00
Andrey Kuzmin
815f4d206d
Fixed #25606 -- Added support for "__" lookup in RelatedOnlyFieldList
2015-11-12 19:50:54 -05:00
Hasan
8c553e7d3f
Fixed #25688 -- Made admin.register() disallow an empty list of models.
2015-11-12 09:54:43 -05:00
Simon Charette
9dcfecb7c6
Fixed #25622 -- 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
Dheerendra Rathor
59e85f09c6
Fixed #25519 -- Made the admin "View site" link point to sites running on a subpath.
...
Used request.META['SCRIPT_NAME'] as the site_url if it hasn't been
customized from the default value of '/'.
2015-10-22 13:51:00 -04:00
matiasb
12aeed8c94
Fixed #24976 -- Fixed missing form label in tabular inline.
...
If the model form had a form field specified, the label rendered
as "None".
2015-10-21 13:35:50 -04:00
Daniel Hahler
1745aa000a
Fixed #25586 -- Fixed possible table cell misalignment in admin's tabular inlines.
...
The table body (tbody) was shifted by one column to the left
if the first inline form field is hidden.
2015-10-21 10:21:23 -04:00
Ville Skyttä
aff4b75c34
Fixed #25566 -- Added title to admin's closing popup response page
2015-10-19 20:12:48 +03:00
Ville Skyttä
6ff500127a
Fixed #25565 -- Removed action="" from admin forms (invalid in HTML5).
2015-10-19 08:09:34 -04:00
Claude Paroz
f233aa3ff9
Updated translation catalogs
...
Forward port of f717cb2ab4
from stable/1.9.x.
2015-10-09 18:02:47 +02:00
Tim Graham
7140d4adf7
Refs #23444 -- Removed InlineAdminForm.original_content_type_id per deprecation timeline.
2015-09-23 19:31:10 -04:00
Ryan Allen
25cccca0a2
Fixed #25378 -- Improved tab through experience in admin.
2015-09-23 17:50:10 -04:00
ramez
1335aa2fb9
Fixed #15760 -- Added JavaScript events for admin inline forms.
2015-09-21 15:34:44 -04:00
Moritz Sichert
8550161e53
Refs #25294 -- Moved BoundField to django.forms.boundfield.
2015-09-16 14:43:38 -04:00
Gavin Wahl
0603f09318
Refs #25149 -- Fixed regression in admin datetime widget for timezones on the negative side of UTC.
2015-09-16 13:16:21 -04:00
Malcolm Box
1d8eb0cae5
Fixed #25374 -- Made ModelAdmin checks work on instances instead of classes.
...
This allows dynamically-generated attributes to be specified in
checked ModelAdmin attributes without triggering errors.
2015-09-11 09:28:34 -04:00
Ola Sitarska
f2f8972def
Fixed #25135 -- Deprecated the contrib.admin allow_tags attribute.
...
Thanks Jaap Roes for the idea and initial patch.
2015-09-08 19:13:43 -04:00
elky
8e84d9c844
Fixed #25365 -- Fixed visual issues in filter_vertical widget introduced by SVG icons commit.
2015-09-07 14:31:32 -04:00
elky
e23e7b2ffe
Fixed #11544 -- Removed !important rules in contrib.admin styles.
2015-09-07 08:26:33 -04:00
Tim Graham
d5bac7e449
Fixed #25353 -- Changed LogEntry.action_time to a "date created".
2015-09-04 12:33:11 -04:00
elky
4c0447b2ae
Removed unused CSS in contrib.admin.
...
The corresponding HTML was removed in
738d9af1e8
.
2015-09-04 08:59:50 -04:00
elky
86cd89095a
Fixed #25348 -- Removed unused gif/png images from contrib.admin.
2015-09-04 08:55:36 -04:00
Maxime Lorant
c92cd22d02
Refs #25345 -- Updated links to code.google.com.
2015-09-04 08:14:21 -04:00
Tim Graham
064d4b1cb0
Fixed #25320 -- Reverted ManyToManyField.null to False for backwards compatibility.
...
Thanks Tom Christie for the report and review.
2015-09-01 07:59:39 -04:00
Maxime Lorant
5153a3bfdc
Fixed #25331 -- Removed trailing blank lines in docstrings.
2015-08-31 17:37:21 -04:00
Tim Graham
123984ff66
Fixed #25289 -- Updated admin's jQuery to 2.1.4.
2015-08-31 09:39:43 -04:00
Tim Graham
7ac0cd445e
Fixed #25323 -- Fixed selenium test failures with chromedriver 2.18.
2015-08-28 13:54:03 -04:00
Tim Graham
9607a04041
Fixed #25299 -- Fixed crash with ModelAdmin.list_display value that clashes with a model reverse accessor.
2015-08-28 08:46:26 -04:00
elky
c32b61c6fd
Fixed #20597 -- Replaced admin GIF/PNG icons by SVG
2015-08-27 17:21:02 -04:00
Pedro Maltez
b04544e21d
Corrected inconsistent indentation in django/contrib/admin/static/admin/js/urlify.js.
2015-08-18 16:15:54 -04:00
Pedro Maltez
aed97bc222
Fixed typo in django/contrib/admin/static/admin/js/urlify.js.
2015-08-18 16:15:54 -04:00
Fabrizio Ettore Messina
ece78684d9
Fixed #25267 -- Corrected message for admin.E122 system check.
2015-08-13 12:34:48 -04:00
Tim Graham
a3830f6d66
Refs #25236 -- Removed ifequal/ifnotequal usage.
2015-08-08 07:33:15 -04:00
Claude Paroz
6ed613b2a5
Refs #25163 -- Added trimmed option to recent blocktrans addition
2015-08-07 17:29:03 +02:00
Alasdair Nicol
8972818289
Fixed #25206 -- Fixed error message when checking a ModelAdmin fieldset's fields.
2015-08-03 08:58:39 -04:00
elky
35901e64b0
Fixed #24444 -- Updated contrib.admin to use django-flat-theme
2015-07-30 15:18:22 -04:00
Luis Visintini
635ffc3c37
Fixed #25163 -- Added hint for non-staff users to admin login page.
2015-07-29 15:09:32 -04:00
Flavio Curella
c2e70f0265
Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField
2015-07-27 18:28:13 -04:00
Tim Graham
71df9b7de4
Fixed JavaScript "no-cond-assign" violations.
2015-07-22 17:09:53 -04:00
Tim Graham
fbb4f0797c
Fixed JavaScript "strict" violations.
2015-07-22 17:09:53 -04:00
Tim Graham
5dceb7c828
Fixed JavaScript "no-underscore-dangle" violations.
2015-07-22 17:09:53 -04:00
Tim Graham
85d6b5d1ed
Fixed JavaScript "no-shadow" violations.
2015-07-22 17:09:52 -04:00
Tim Graham
8eeb566aca
Fixed #25149 -- Replaced window.__admin_utc_offset__ with a data attribute.
2015-07-22 17:09:52 -04:00
lukasz.wojcik
927b30a6ab
Fixed #24126 -- Deprecated current_app parameter to auth views.
2015-07-21 08:26:41 -04:00
Tim Graham
a131d9ce55
Fixed JavaScript "no-octal-escape" violations.
2015-07-18 06:57:10 -04:00
Tim Graham
f8304ac33b
Fixed JavaScript "no-multi-spaces" violations.
2015-07-18 06:57:10 -04:00
Tim Graham
efc144aba0
Fixed JavaScript "space-infix-ops" violations.
2015-07-18 06:57:10 -04:00
Tim Graham
8a99c01184
Fixed JavaScript "key-spacing" violations.
2015-07-18 06:57:10 -04:00
Tim Graham
2d6466c295
Fixed JavaScript "comma-spacing" violations.
2015-07-18 06:57:10 -04:00
Tim Graham
8606bea3bc
Fixed JavaScript space-before-function-paren violations.
2015-07-18 06:57:10 -04:00
Tim Graham
ac6164948e
Fixed JavaScript "curly" violations.
2015-07-18 06:57:10 -04:00
Tim Graham
e25ba6e8bb
Refs #25073 -- Copied recently added verbose_names to migrations.
2015-07-17 14:07:18 -04:00
Edward Henderson
f8cc464452
Fixed #16501 -- 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
adffff79a3
Allowed installing closure with pip for admin JavaScript compression.
2015-07-17 13:22:34 -04:00
Razvan Andrei Ionescu
97bc875234
Fixed #25117 -- Added Romanian char map for Javascript slug generation
2015-07-13 13:31:12 -04:00
Szilveszter Farkas
f576b23a65
Fixed #25073 -- Added verbose_name to contrib's model fields that were missing it.
2015-07-12 13:44:16 -04:00
Jan Pazdziora
3353684102
Fixed #25032 -- Removed double redirect in admin login.
2015-07-03 08:53:10 -04:00
Adam Taylor
30a152a367
Fixed #25053 -- Made admin templates use |safe with password help_text
2015-07-02 14:02:18 -04:00
jpic
fedef7b2c6
Fixed #24908 -- Fixed duplicate readonly field rendering.
...
ModelAdmin added readonly_fields to exclude, but would not undeclare
them if they were overridden.
2015-07-02 13:37:30 -04:00
Andriy Sokolovskiy
4359be023b
Removed unreachable code
2015-06-29 17:14:29 -04:00
Trey Hunner
ec4f219ecb
Fixed #22463 -- Added code style guide and JavaScript linting (EditorConfig and ESLint)
2015-06-27 16:36:26 -04:00
Tim Graham
7da3923ba0
Sorted imports in __init__.py files.
2015-06-27 11:53:33 -04:00
Tim Graham
aaacaeb096
Renamed RemovedInDjangoXYWarnings for new roadmap.
...
Forwardport of ae1d663b79
from stable/1.8.x plus more.
2015-06-24 16:08:20 -04:00
Tim Graham
7f155a0703
Refs #25006 -- Added a '6 p.m.' option to the admin's time picker.
2015-06-22 07:24:57 -04:00
Tim Graham
20c6ba6ffa
Fixed #24962 -- Added newline to characters escaped by contrib.admin.utils.quote()
...
Thanks alito for the report and patch.
2015-06-18 16:10:44 -04:00
Fabrizio Ettore Messina
64033fd085
Fixed #24968 -- Removed bad horizontal scrollbar appearing on admin changelist page.
...
Appeared in Opera with ModelAdmin.actions=None.
2015-06-11 11:56:48 -04:00
Trey Hunner
788071e22d
Moved jQuery to a vendor/jquery subdirectory.
2015-06-07 22:23:42 +02:00
Loek van Gent
0207bdd2d4
Fixed #24474 -- Allowed configuring the admin's empty change list value.
2015-06-04 21:06:26 -04:00
Tim Graham
ad0f0daf8c
Fixed #24851 -- Fixed crash with reverse one-to-one relation in ModelAdmin.list_display
...
Forwardport of 2456276b02
from stable/1.8.x
2015-05-28 10:52:50 -04:00
Tim Graham
fb94e7b8cf
Fixed #24784 -- Fixed visibility regression in admin's FK widget.
2015-05-19 13:01:48 -04:00
Piotr Jakimiak
4157c502a5
Removed unnecessary arguments in .get method calls
2015-05-13 20:51:18 +02:00
Riccardo Magliocchetti
bd53db5eab
Fixed #24553 -- Added the list of available applications to AdminSite.each_context()
2015-05-11 12:07:36 -04:00
Piotr Jakimiak
34b6b89bd2
Used LogEntry methods to check LogEntry action_flag in __str__
2015-05-07 21:02:47 -04:00
Samuel Paccoud
d084176cc1
Fixed #16609 -- Fixed duplicate admin results when searching nested M2M relations.
...
This was fixed earlier but only when the M2M relation was at the first
level on the object. This commit fixes the issue even when the M2M is
at deeper levels, such as behind a foreign key.
2015-05-06 09:56:12 -04:00
Adam Zapletal
0894643e40
Fixed #23387 -- 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
Tim Graham
2c3ce26beb
Fixed #24676 -- Fixed help text positioning in ``contrib.admin`` filter_* widgets.
2015-05-01 15:32:05 -04:00
Claude Paroz
6aed5cfc6f
Updated translations from Transifex
...
Updates for languages: Indonesian, Belarusian, Persian, and Dutch.
Forward port of cb370f8510
from stable/1.8.x
2015-04-30 14:29:08 +02:00
Curtis Maloney
14ecbd02a3
Removed cases of six.iter* wrapped in a list()
...
There's absolutely no advantage [and a mild performance hit] to using six.iter*
in these cases.
2015-04-18 23:29:29 +10:00
Riccardo Magliocchetti
bcf700b4e3
Removed code duplication between AdminSite.index() and app_index().
2015-04-15 09:56:22 -04:00
Eric Rouleau
d72e0178e9
Fixed #24593 -- Fixed number formatting of readonly IntegerFields in the admin.
2015-04-14 17:49:08 -04:00
Tim Graham
1273a7a0e8
Revert "Fixed #24474 -- Allowed configuring the admin's empty change list value."
...
This reverts commit 72f769f494
.
There are several test failures that need to be fixed.
2015-04-08 20:39:59 -04:00
Loek van Gent
72f769f494
Fixed #24474 -- Allowed configuring the admin's empty change list value.
2015-04-08 20:27:01 -04:00
Claude Paroz
88dfe544f6
Fetched updated contrib translations from Transifex
...
Forward port of 5483c66f85
from stable/1.8.x
2015-04-01 19:51:50 +02:00
Tim Graham
845817b039
Fixed #24466 -- Added JavaScript escaping in a couple places in the admin.
...
Thanks Aymeric Augustin and Florian Apolloner for work on the patch.
2015-03-30 19:07:17 -04:00
Caroline Simpson
dc5b01ad05
Fixed #18773 -- Added logging for template variable resolving
...
Added a django.template logger without a default handler. Added
logging if there is an exception while resolving variables in a
template.
2015-03-27 19:19:48 -04:00
Anssi Kääriäinen
8f30556329
Renamed Field.rel attribute to remote_field
...
Field.rel is now deprecated. Rel objects have now also remote_field
attribute. This means that self == self.remote_field.remote_field.
In addition, made the Rel objects a bit more like Field objects. Still,
marked ManyToManyFields as null=True.
2015-03-25 08:16:12 -04:00
Riccardo Magliocchetti
0decef337f
Fixed #24405 -- Made admin related object JavaScript overridable
...
Consolidated it in one file and move the DOM related stuff to the
template so it is easily overridable. To override the popup behavior
you need to add handlers for the custom events triggered in the
admin_change_form_document_ready template block.
2015-03-24 11:51:37 -04:00
TomV
a4a58811b9
Removed redundant model instantiation in contrib.admin; refs #11390 .
2015-03-23 10:06:25 -04:00
Karl Hobley
aea02ddfb7
Fixed #24490 -- Set LogEntry.change_message when adding an object.
2015-03-20 18:25:06 -04:00
Yair Chuchem
eb5ebcc2d0
Fixed #24285 -- Made for_user argument optional for {% get_admin_log %} tag
2015-03-20 08:32:25 -04:00
Loek van Gent
35b3158d52
Fixed #24417 -- Added ModelAdmin.get_list_select_related()
2015-03-19 08:52:28 -04:00
Tim Graham
e4a578e70e
Fixed #24226 -- Changed admin EMPTY_CHANGELIST_VALUE from (None) to -
2015-03-12 09:40:56 -04:00
Anton Danilchenko
28e8c54d7d
Fixed #24467 -- Removed conditional inclusion of actions.js & prepopulate.js.
...
The JavaScript may be required when using ModelAdmin.get_actions() or
get_prepopulated_fields(). Always including them is the easiest solution.
2015-03-11 20:18:59 -04:00
david
88c605e3e3
Fixed #23993 -- Added form.media to the admin login template.
2015-03-07 12:59:58 +01:00
Tim Graham
d61ebc8fed
Fixed #19538 -- Removed window.__admin_media_prefix__ from admin templates.
2015-03-05 06:44:16 -05:00
Tim Graham
36a17be9f3
Fixed #24426 -- Displayed admin actions panel when show_full_result_count=False.
2015-03-04 12:00:12 -05:00
Tim Graham
fe42bfaaff
Used format_html() in contrib.admin.utils for consistency.
2015-03-04 10:26:04 -05:00