Matt Westcott
1ca113fba5
Fix page / account management / filter tests for EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
d3b3d4e203
Fix modeladmin tests for EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
da5b5d4161
Further test fixes for EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
a7492251c4
Don't get users by username in test_page_permissions
2020-08-26 17:02:36 +01:00
Matt Westcott
9bf23b576e
Split up test_specific fixtures
2020-08-26 17:02:36 +01:00
Matt Westcott
ebbd925048
Additional test fixes for EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
391bfc0a43
Fix TestExplorablePages for EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
537c4fb216
Make WagtailTestUtils.login into a general wrapper for logins to work across CustomUser and EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
57bc07ed37
Add helpers for create_user / create_superuser
...
These allow us to use the same call for both username-based and email-based user models.
2020-08-26 17:02:36 +01:00
Matt Westcott
8c38dc5cf5
Revert hacks dealing with EmailUser not inheriting from PermissionsMixin
...
These were necessary when EmailUser was installed at the same time as CustomUser, because the reverse relations on Permission / Group would have clashed. Now we're only installing one at a time, this isn't necessary.
2020-08-26 17:02:36 +01:00
Matt Westcott
afb51eafbe
Add `--emailuser` flag to runtests.py to enable the EmailUser model
...
wagtail.admin.tests.test_password_reset (currently the only test module where EmailUser is in use) has been updated to skip the CustomUser or EmailUser-specific test according to the active AUTH_USER_MODEL, and so this now succeeds with or without the `--emailuser` flag.
2020-08-26 17:02:36 +01:00
Matt Westcott
0b070018f3
Extend emailuser test fixture to match customuser
...
This will allow us to load fixtures while AUTH_USER_MODEL is set to emailuser, without breaking foreign key references.
2020-08-26 17:02:36 +01:00
Matt Westcott
492b021e10
Move user fixtures into their own fixture files
...
When loading test fixtures, all files matching the given name (test.json) across all installed apps will be loaded, so tests will still behave as before; however, this allows us to cleanly skip loading fixtures for a given user model when that app is omitted from INSTALLED_APPS.
2020-08-26 17:02:36 +01:00
Matt Westcott
00bcf5474d
Move emailuser model into a separate wagtail.tests.emailuser app
2020-08-26 17:02:36 +01:00
Matt Westcott
30c1a4132c
Release note for #6335
2020-08-26 14:17:18 +01:00
Matt Westcott
3b361673ee
Fill in release date for 2.10.1
2020-08-26 14:14:13 +01:00
Matt Westcott
394e46f783
Fetch new translations from Transifex
2020-08-26 14:14:13 +01:00
Matt Westcott
7b58f9709a
Also add whitespace on <br /> and <hr /> tags
2020-08-26 14:13:10 +01:00
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