Wykres commitów

9896 Commity (8c306910dd86e09cea11196715da47c6a54c722b)

Autor SHA1 Wiadomość Data
jacobtoppm cc430e2bb1 flake8 2020-03-19 16:10:30 +00:00
jacobtoppm ee0af70545 Add test for overriding edit handler heading 2020-03-19 16:10:29 +00:00
jacobtoppm d706c4f343 Allow FieldPanel heading kwarg to override its bound field label 2020-03-19 16:10:29 +00:00
Matt Westcott f83977c291 Add cache to speed up compiling media declarations for stream blocks
As proposed by @pimarc in https://github.com/wagtail/wagtail/issues/3062#issuecomment-586331423
2020-03-18 16:12:46 +00:00
Matt Westcott a34d509f7e Release note for #5880 2020-03-13 17:42:11 +00:00
jacobtoppm 32de830427 Fix datetimes being forced to string for xlsx export when unnecessary 2020-03-13 17:33:23 +00:00
jacobtoppm 54e5ed100a Move usual export fields (ie those identical to base report template) from LockedPagesView into ReportView 2020-03-13 17:33:22 +00:00
jacobtoppm b3e5278a1b Remove spreadsheet export setting, and allow a user to select format via a dropdown instead 2020-03-13 17:33:22 +00:00
jacobtoppm 00650e7311 Reduce openpyxl version for Python 3.5 compatibility 2020-03-13 17:33:21 +00:00
jacobtoppm 26ce5a5f73 Isort 2020-03-13 17:33:21 +00:00
jacobtoppm 4c7754e964 Reformatting 2020-03-13 17:33:21 +00:00
jacobtoppm 2ed86e2513 Remove unused imports 2020-03-13 17:33:20 +00:00
jacobtoppm fbead4549b Add documentation for spreadsheet format setting and new modeladmin features 2020-03-13 17:33:20 +00:00
jacobtoppm 720593b077 Add docstrings and make exported values for modeladmin spreadsheets mirror those in index listings 2020-03-13 17:33:20 +00:00
jacobtoppm 41bf6010df Add openpyxl for reading xlsx files in tests (xlsxwrites cannot, but is more performant and nicer to use, so is preferred outside testing rather than using openpyxl for both). Add tests for xlsx exports. 2020-03-13 17:33:19 +00:00
jacobtoppm b852ffc914 Add tests for CSV export to modeladmin and locked pages report, and fix breaking forms tests 2020-03-11 09:07:52 +00:00
jacobtoppm c94ba3a490 Rewrite preprocess function finding to allow varying function by both field and by value class (if field unspecified) 2020-03-11 09:07:52 +00:00
jacobtoppm 1d107abc7d Alter forms spreadsheet export to use SpreadsheetExportMixin, enabling form submissions to be exported as xlsx as well 2020-03-11 09:07:52 +00:00
jacobtoppm 8e88f3535c Add spreadsheet export functionality to ModelAdmin 2020-03-11 09:07:52 +00:00
jacobtoppm 877675bafb Add download link to base report template, add a default date format, and
allow callables in list_export
2020-03-11 09:07:52 +00:00
jacobtoppm 72cd21e27c Add ability to override headings, and to access nested attributes for export 2020-03-11 09:07:52 +00:00
jacobtoppm 7026ab3408 Add xslxwriter dependency 2020-03-11 09:07:52 +00:00
jacobtoppm 110a08b40b Initial implementation of SpreadsheetExportMixin, and new setting for spreadsheet export format 2020-03-11 09:07:52 +00:00
Matt Westcott 98c2aefbe8 Revert "Allow url punctuation as defined in RFC 3986 section 2.3"
This reverts commit 08ef3f4840. Reverting as it breaks serving static files with whitenoise.

Conflicts:
	CHANGELOG.txt
	docs/releases/2.9.rst
2020-03-10 15:51:31 +00:00
Andy Chosak 26e2e5341a
Fix minor typo in code comment
funtion -> function
2020-03-05 13:33:58 -05:00
Matt Westcott c76447246d Fix Javascript alerts reported by LGTM 2020-03-05 09:59:18 +00:00
Andy Chosak 17e09fee76
Fix quotes in ModelAdmin documentation
Building the docs currently generates a warning:

wagtail/docs/reference/contrib/modeladmin/indexview.rst:423: WARNING: Could not lex literal_block as "python". Highlighting skipped.

This is due to use of backticks instead of single quotes on this page:

https://docs.wagtail.io/en/v2.8/reference/contrib/modeladmin/indexview.html#modeladmin-get-queryset

In practice this doesn't seem to actually break highlighting, but it's still good to fix.
2020-03-04 13:21:53 -05:00
Matt Westcott 7dae758ea4 Release note for #5845 2020-03-04 11:53:03 +00:00
Matt Westcott a8c7ce6c33 Fix tag indexing tests that were being skipped
Tests were being skipped if the search backend did not exactly match wagtail.search.backends.elasticsearch, which was only elasticsearch version 1. Fixing this exposed the refresh_index bug fixed in #5845, and a secondary bug in document editing: uploading a new document file skipped saving tags.
2020-03-04 11:27:02 +00:00
Lars van de Kerkhof deda5e7b17 get_indexed_models is a function, lets call it and loop through the results.
Most likely nobody has ever called refresh_index, because I just tried it and found this bug.
2020-03-04 10:23:56 +00:00
Storm Heg 08ef3f4840 Allow url punctuation as defined in RFC 3986 section 2.3 2020-03-03 17:38:07 +00:00
stevelyall babcbb7f80 Add Vidyard to oEmbed provider whitelist 2020-03-03 17:06:05 +00:00
Casper 19f50c72ce Hide preview button when preview_modes is empty 2020-03-03 16:20:23 +00:00
Tom Dyson 92ba2c4832 Replace welcome page for Squash instances 2020-03-03 15:20:47 +00:00
Matt Westcott 122575d2ee Release note for #5848 2020-02-26 14:11:17 +00:00
Matt Westcott 09a2ccf8cc Documentation for custom tag models 2020-02-26 14:10:21 +00:00
Matt Westcott 163efe3753 Configure WagtailAdminModelForm to use TagField as standard for tag fields 2020-02-26 14:10:21 +00:00
Matt Westcott c470b33d44 Support setting a free_tagging flag on tag models to be picked up by TagField / AdminTagWidget 2020-02-26 14:10:21 +00:00
Matt Westcott 702a4b438f Implement TagField to apply tag whitelisting 2020-02-26 14:10:20 +00:00
Matt Westcott 3957674fc2 Add option to AdminTagWidget to disable free tagging
Also refactor JS initialiser to pass options as a dict, so we don't have an impenetrable list of booleans
2020-02-26 14:10:20 +00:00
Karl Hobley d48d3dfc5b
Fix documents tests on Windows (#5752)
As documents are streamed, the files are not closed until the datastream
has been fully consumed by the test. But most of the documents tests
never do this.

On Windows, files must be closed before deleting them. This change makes
the tests always consume the file so that they are closed before
deleting them.
2020-02-25 23:21:32 +00:00
Maylon Pedroso 78cc81c505 Set context variable to None if no image provided to image templatetag 2020-02-25 23:16:52 +00:00
Po-Chuan Hsieh f52d3d89d1
Relax pillow version restriction (#5829)
It allows to build with Pillow 7.x.
2020-02-25 23:10:17 +00:00
dt a6fb0762a8 Mention options for schema in sitemap
Add clear way to change schema in `sitemap.xml` to https on `sitemap`
documentation page
2020-02-25 21:33:21 +00:00
Karl Hobley 7e8f8f893c
Add changelog entry for removing Django 1.11 support 2020-02-24 12:26:48 +00:00
Matt Westcott 8931312025 Release note for #5827 2020-02-21 17:29:07 +00:00
Storm Heg 738572a545 Optimise configure site warning conditional 2020-02-21 16:56:40 +00:00
Storm Heg 50f6b21a78 Fix regression where Page.get_site() was not not working 2020-02-21 16:56:39 +00:00
Storm Heg b13d8dc6c8 Fix get_urls_parts: return None if wagtail_serve is not registered 2020-02-21 16:56:39 +00:00
Matt Westcott 4df455ea9f
Remove support for Django 2.1 (#5840) 2020-02-18 13:55:53 +00:00