Wykres commitów

10409 Commity (68febd981d647fe122bb8bc3e690a5645b98aead)

Autor SHA1 Wiadomość Data
Matt Westcott 68febd981d Ensure block level elements in rich text are whitespace-separated in indexed content
Fixes #6312
2020-08-26 14:13:10 +01:00
Matt Westcott e3bbccd814 Fix timesince_last_update for naive datetimes (USE_TZ=False)
Fixes #6345
2020-08-25 15:11:24 +01:00
Matt Westcott d06c52d495 Specify django-modelcluster >=5.0.2 to avoid django-taggit dependency issues 2020-08-25 13:52:04 +01:00
Katie McLaughlin 637000fc08 Add notes for CORS settings on Google Cloud Storage 2020-08-24 13:05:38 +01:00
Katie McLaughlin 707dc171dc Add Google Cloud deployment references
App Engine video
Cloud Run codelab
2020-08-24 13:05:38 +01:00
Matt Westcott 23bec4345b Release note for #6336 2020-08-24 09:48:00 +01:00
Matt Westcott 8e44476e4f Correctly output Draft vs Published when no revisions exist
Fixes #6324
Also removed repeated calls to page.get_latest_revision.
2020-08-24 09:47:43 +01:00
Matt Westcott 3c4349cf7e Build new strings for translation post #6344 2020-08-21 13:36:09 +01:00
Matt Westcott a1f882b7c9 Convert remaining gettext .format strings to old-style string formatting
As per #5548 / #6238. Fixes #6343
2020-08-21 13:26:00 +01:00
Matt Westcott b111e100a6 Release note for #6329 2020-08-17 17:55:14 +01:00
Coen van der Kamp 58e4f3fe1c Fix menu item icon margin 2020-08-17 17:09:03 +01:00
Coen van der Kamp 480c6f2a17 Fix report icon 2020-08-17 17:09:03 +01:00
Matt Westcott 3f1b41b823 Release note for #6319 2020-08-17 16:58:19 +01:00
Vyacheslav Matyukhin e984190870 fix page history view on custom user models
Username models without username field caused an exception on page
history views.

This commit fixes #6317.
2020-08-17 16:58:19 +01:00
Matt Westcott 46e5dbb5b0 Release note for #6322 2020-08-17 16:58:18 +01:00
Dan Braghis 06d4e2e0ac Add tests for create_log_entries_from_revisions 2020-08-17 16:58:18 +01:00
Dan Braghis 6837d2d512 Avoid creating log entries for revisions without page types 2020-08-17 16:58:18 +01:00
Matt Westcott 58f5c29252 Add release note sections for 2.10.1 2020-08-17 16:58:18 +01:00
Matt Westcott cc2777c5cf Avoid setting self.content_type on page CreateView / EditView
Fix regression in #6306 - an instance variable `self.content_type` will be picked up by TemplateResponseMixin as the MIME content type for the response. Use `page_content_type` to avoid this.
2020-08-17 15:02:20 +01:00
Matt Westcott b9a784adf0 Lint fix 2020-08-13 15:12:09 +01:00
Matt Westcott 8a4756a592 Add helper functions for message buttons 2020-08-13 15:00:03 +01:00
Matt Westcott a8fffb35c4 move save confirmation message into a helper method 2020-08-13 15:00:03 +01:00
Matt Westcott afb6baa447 Move save action into its own method 2020-08-13 15:00:03 +01:00
Matt Westcott e3bb97d0ed Move cancel-workflow action into its own method 2020-08-13 15:00:03 +01:00
Matt Westcott 8dcc7b7e9a Move perform-workflow-action into its own method 2020-08-13 15:00:03 +01:00
Matt Westcott 8bb90ffaf2 Move restart-workflow action into its own method 2020-08-13 15:00:03 +01:00
Matt Westcott 9d584a20dc Move submit action into its own method 2020-08-13 15:00:03 +01:00
Matt Westcott 008ca877da Move publish action into its own method 2020-08-13 15:00:03 +01:00
Matt Westcott 27fa89c430 Move redirect responses into their own methods 2020-08-13 15:00:03 +01:00
Matt Westcott 15afbac957 Move run_hooks helper to a mixin and use it for EditView hooks 2020-08-13 15:00:03 +01:00
Matt Westcott edb87b1cd9 Reorder variable-setting in EditView.form_valid in preparation for splitting into separate methods per action 2020-08-13 15:00:03 +01:00
Matt Westcott 74e6c497e1 Split EditView.post into form_valid and form_invalid methods 2020-08-13 15:00:03 +01:00
Matt Westcott badab7b059 Move all is_valid / not is_valid cases into a single branch
is_publishing, is_submitting, is_restarting_workflow and is_reverting are now only used inside the is_valid branch, so the initial setup to set them to False can be removed.
2020-08-13 15:00:03 +01:00
Matt Westcott 4ec8d59b88 Refactor EditView.post into is_valid and not is_valid code paths
A bit of intermediate refactoring to make it clearer what the next step is doing...

is_saving is true in the code paths where the form is valid and unlocked, so rename this condition to is_valid. cancel_workflow is the one action that is allowed while is_valid is false, so split that into identical "cancel workflow while valid" and "cancel workflow while invalid" cases. This way, all code paths are cleanly partitioned into is_valid and (not is_valid) branches, which we can reorganise in the next step.
2020-08-13 15:00:03 +01:00
Matt Westcott bca74c41e2 Split EditView into get and create methods 2020-08-13 15:00:03 +01:00
Matt Westcott 8795ec94f6 Move moderation warning and page_for_status into helper functions 2020-08-13 15:00:03 +01:00
Matt Westcott 512b3a7e75 Reshuffle and deduplicate shared code between GET and POST branches 2020-08-13 15:00:03 +01:00
Matt Westcott 7cabaede6b Use TemplateResponseMixin / ContextMixin for EditView 2020-08-13 15:00:03 +01:00
Matt Westcott be7f7eb660 Make various local variables in EditView into instance variables 2020-08-13 15:00:03 +01:00
Matt Westcott cfdc7da4aa Add helper functions for message buttons 2020-08-13 15:00:03 +01:00
Matt Westcott 6f8b2eaa99 Split save/publish/submit actions into their own methods 2020-08-13 15:00:03 +01:00
Matt Westcott 4fd6410094 Move post-success redirections into helper methods 2020-08-13 15:00:03 +01:00
Matt Westcott a011a5eb73 Move CreateView hook calls into a helper method 2020-08-13 15:00:03 +01:00
Matt Westcott 893c49c4a3 Split up CreateView.post into form_valid and form_invalid methods 2020-08-13 15:00:03 +01:00
Matt Westcott 7aeca637ce Split up CreateView into post and get methods 2020-08-13 15:00:03 +01:00
Matt Westcott 39237bbada Use TemplateResponseMixin / ContextMixin for CreateView 2020-08-13 15:00:03 +01:00
Matt Westcott a21908d42c Make various local variables in CreateView into instance variables 2020-08-13 15:00:03 +01:00
Matt Westcott dd72949bf1 Make page create view into a class-based view 2020-08-13 15:00:03 +01:00
Matt Westcott c2a08b9d16 Make page edit view into a class-based view 2020-08-13 15:00:03 +01:00
Matt Westcott 7d7030747d Remove wildcard imports from wagtail.admin.views.pages 2020-08-13 15:00:03 +01:00